VB and VBA Users Source Code: Download a file from the internet
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Download a file from the internet
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Friday, November 17, 2000
Hits:
780
Category:
Internet/Remote Comms
Article:
To download a file from the internet use the following routine: Private Declare Function DoFileDownload Lib "shdocvw.dll" (ByVal lpszFile As String) As Long 'Purpose : Downloads an file from the internet 'Inputs : sURL The address of the file eg. http://www.vbusers.com/downloads/netfull.zip 'Outputs : 'Author : Andrew Baker 'Date : 17/11/2000 10:19 'Notes : Displays the download dialog 'Revisions : 'Assumptions : Assumes IE is installed Function DownLoadFile(sURL As String) As Long On Error Resume Next DownLoadFile = DoFileDownload(StrConv(sURL, vbUnicode)) On Error Goto 0 End Function
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder