VBA Developer
The following function uses the URLDownloadToFile Lib "urlmon" to download a .jpg file from a website. This works perfectly in Windows XP but is not working with Windows 7.
Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then DownloadFile = True
End Function
I have found no definitive answer on the internet. What am I missing???
July 13th, 2012 3:33pm
Try developer forum, please.
Thank for understanding.
Milos
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2012 5:42pm