+ Reply to Thread
Results 1 to 6 of 6

download all links within an excel document

  1. #1
    Registered User
    Join Date
    12-23-2009
    Location
    los angeles
    MS-Off Ver
    Excel 2003
    Posts
    2

    download all links within an excel document

    Thank you for reading

    My objective is to be able to mass download images via hyperlink.

    I have an excel file that has all the links to the webpages that contain the pictures I need to download. So, I save the excel file as a webpage so that I can use a program like downthemall to go to each image and download them, here is the problem. When downthemall downloads them it only downloads them as a .htm file. However if I click on each link, it does forward me to the site and the picture does show and I can save the image manually. I am trying to figure out a way to be able to download all the images without having to manually click each link, as I have almost 2k images needed to download. I also wanted to add that you have to log into the webpage that the links are forwarded too. Any help would be greatly appreciated. Thank you for your time.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: download all links within an excel document

    The following code should download files for all the hyperlinks for Excel running in normal mode.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    10-15-2011
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Re: download all links within an excel document

    The LocalFilename variable isn’t clearing each time around the loop (it just kept growing, appending the previous filenames to the newest one), so I added a line, LocalFilename = “” to clear it before Next Hyperlink.

    Also, make sure there is no other data in the sheet except URLs. For me at least, when i had other data in the sheet the macro would not work.
    Last edited by limahab; 10-15-2011 at 03:33 AM.

  4. #4
    Registered User
    Join Date
    07-30-2007
    Location
    South Africa
    Posts
    12

    Re: download all links within an excel document

    Hi mrice,

    I am rather thick at the fancier side of excel - and need this desperately as well - where would I put the code you posted?

    Kind regards, Lorna
    ______________________

    Draco Dormiens Nunquam Titilandus

    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -Albert Einstein-

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: download all links within an excel document

    Lorna,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    07-30-2007
    Location
    South Africa
    Posts
    12

    Re: download all links within an excel document

    Apologies - thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1