Re-sizing inserted photos

ultrawat

New Member
Joined
Nov 7, 2005
Messages
47
I have a code which inserts photos into a worksheet. The code inserts the image to a fixed size and position.

My problem is that the size of the jpg file is fairly large, so when the worksheet is saved the xls file is large.

Is there any way of adding code which resizes/resamples the jpg image as it is being inserted? A reduction in quality is not a major concern.

Thanks in anticipation
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Thanks for this......

Does this code just re-size the photo...or does it reduce the size of the photo file??

Thanks again for your input
 
Upvote 0
Just done a test to check.

The picture becomes part of the Excel workbook. The.xls file size increases, and hiding the original file has no effect. Excel cannot make changes to picture files on disk.
 
Upvote 0

Forum statistics

Threads
1,203,455
Messages
6,055,540
Members
444,794
Latest member
HSAL

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