Api: URLDownloadToFile Lib "urlmon" Alias "URLDow
20.07.2011 14:46:48
ransi
HAllo
Eigenartig...
Versuch mal was anderes:
Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" _
Alias "URLDownloadToFileA" ( _
ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long
Public Sub machs()
Dim dieUrl As String
Dim dasZiel As String
Dim myResult
dieUrl = "http://www.office-loesung.de/download.php?id=46270"
dasZiel = "C:/die_neue_Datei.xls"
myResult = URLDownloadToFile(0, dieUrl, dasZiel, 0, 0)
End Sub
ransi