Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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
Private Const ERROR_SUCCESS As Long = 0
Public Function DownloadFile(Source, des) As Boolean
'if the API returns ERROR_SUCCESS (0),
'return True from the function
DownloadFile = URLDownloadToFile(0&, Source, des, 0&, 0&) = ERROR_SUCCESS
End Function
[code]
source = URL to pdf
des = path to save pdf
Sub download()
Dim Source
Source = "[URL unfurl="true"]http://nds1.nokia.com/files/support/nam/phones/guides/Nokia_5130_XpressMusic_UG_en-US_es-LAM.pdf"[/URL]
msgbox downloadfile(Source, "c:\5130.pdf")
End Sub