If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Download multiple files from different URLs / links

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-11-10, 12:14
abhay_547 abhay_547 is offline
Registered User
 
Join Date: Sep 2009
Posts: 78
Download multiple files from different URLs / links

Hi All,

I have below macro which is used to download single file from internet. It works fine but I want to download multiple files from different links. I have created a userform with a list box which shows all URLs / links and has download button. I need the help to use the below macro in my attached file which will allow me to download files.

Code:
Sub downloadfiles()
'Need to reference to Microsoft Internet Controls
    Dim URL As String
    'URL = Worksheets("References & Resources").Range("URLMSL")
    URL = "http://www.xyz.com/abc.zip" 'for TEST
    Dim IE As Object
    Set IE = CreateObject("internetexplorer.application")
    IE.Visible = True
    IE.Navigate URL
    Do While IE.ReadyState <> 4
        DoEvents
    Loop
    SendKeys "%S"
    IE.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT    'SaveAs
End Sub
There is one more issue with the above mentioned macro that it asks for a confirmation to user before downloading the file .i.e. do he want to open or save or cancel the download. Which I want to suppress.

Thanks a lot for your help in advance.
Attached Files
File Type: zip Download Tool macro and scrnshot.zip (41.1 KB, 56 views)
Reply With Quote
  #2 (permalink)  
Old 10-05-10, 03:02
SledgeHammer SledgeHammer is offline
Registered User
 
Join Date: Oct 2010
Location: India
Posts: 2
Wink

What's the intended use of this Excel file ?

Would you please be more specific ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On