Exporting images from excel

Kswamy

New Member
Joined
Mar 25, 2014
Messages
3
Hi All,

I have been presented with an excel document, with image names in one column (e.g. 832005_001), and hyperlinks in another column (http://www.xyz.com/images/product.jpg).

Note: the Image names are not included within the hyperlink. Don't know if this will impact anything, but thought it was worth a mention.

My goal is to export the hyperlinks in the excel document into a folder as images with the corresponding image names. Is this possible to do without manually opening each link and saving it in a document, and manually renaming each picture in accordance with its image name? (as there are over 4,000).

Thanks and much appreciated!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Use a For ... Next loop to loop through the cells in the hyperlinks column and call URLDownloadToFile to download each image to the folder, named according to the image names column. There should be code on this forum fairly close to what you need if you search for the terms mentioned.
 
Upvote 0
No such luck finding a code to do this. I was able to call URLDownloadToFile but as some of the images were duplicates, they did not all copy as expected.
 
Upvote 0
Kswamy, any luck figuring out this code? I have been having the same problem and I haven't been able to get anything to work how I want it to. I resorted to importing the picture to excel before realizing I am just stuck with the image in Excel when I need it in individual png files.
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,091
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top