Could probably save a bit of 'egg on face' if you tested before posting....
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Pete, you can also achieve this downloading function with the help of URLDownloadToFile function.
This function is very easy and you don't even need an Inet control if you use this function.
___
[tt]
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (pCaller As Any, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Function Download(Url As String, FileName As String) As Boolean
'returns true if successful
Download = URLDownloadToFile(ByVal 0&, Url, FileName, 0, 0) = 0
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.