Results 1 to 20 of 21

Thread: VBA to Download documents using URLs & Save As to folder

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Oct 2017
    Posts
    10
    Location

    VBA to Download documents using URLs & Save As to folder

    Hello,

    I have a list of URLs in column A which are for separate reports in Excel format. (The URLs are formatted like in the attachment below)

    In column B, I have a list of the names I would like to save/name each file as, e.g Bookings.

    I would like help to create a macro that does the following:
    1. Opens the URL from cell A1
    2. Macro waits until the Open/Save option appears before continuing
    3. Choose to "Save As" the file as name stated in cell B1, to desktop without opening
    4. Choose yes to replace file that already exists with that name
    5. Close the IE window opened in step 1
    6. Opens the URL from cell A2
    7. Macro waits until the Open/Save option appears before continuing
    8. Choose to "Save As" the file as name stated in cell B2, to desktop without opening
    9. Choose yes to replace file that already exists with that name
    10. Close the IE window opened in step 6
    11. etc until end of list of URLs in Column A is reached

    Hoping someone can help - sounds simple when I type it out but I have tried before and can't seem to figure out the whole script for the macro.
    Many Thanks!
    Attached Images Attached Images
    Last edited by MRedfern; 10-07-2017 at 08:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •