Extract and Save all JPG Objects from Excel Workbook?

dlello2

New Member
Joined
Jul 2, 2012
Messages
2
Hi there,

I have a number of excel files with embedded (object) jpgs. I am being asked to upload these photos individually to specific line items of a client's online database.

Right now I'm having to open each embedded object one by one, save them to my computer, and then upload. Is there a way to extract all of these jpgs to a folder on my computer?

**note that I've tried saving the file as a webpage and using the "embedded" folder. This is yielding all binary OLE Object files which I cannot open/convert to pictures files.

Below is a small sample of what I'm working with. Thanks very much for your help!

 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi dlello2 - If you are familiar with macros, and want to spend the time modifying the code below, it may help with your problem. It exports "Picture 1" to C:\misc\images\ExportTest2.jpg, but the catch is that it has to create a Chart first to accomplish this task. This is not pretty, but it may help. Best of luck.

Code:
Sub dlello2_ExportImages()
ActiveSheet.Shapes.Range(Array("Picture 1")).Select
Selection.Copy
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlColumnClustered
With ActiveChart
    .Paste
    .Export Filename:="C:\misc\images\ExportTest2.jpg", Filtername:="JPG"
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,466
Messages
6,130,795
Members
449,593
Latest member
morpheous

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