"reset" pictures programatically

twilsonco

New Member
Joined
Dec 25, 2012
Messages
33
Hey guys,

I've got a workbook that runs on mac and pc. One of the problems with this is that pictures added in one platform lose their aspect ratio when opened on the other.

This can be fixed by using the "reset" button in the "format pictures" tab on the ribbon, but I don't know how to do that with vba. I gave up trying to compress pictures with vba, and this is another ribbon object so I don't know if this is possible.

The other alternative is to tag each picture so I know which platform is was imported in, that way I can check and resize when the workbook is opened in the other platform (the aspect ratio of a picture imported in windows and then opened in mac increases by a factor of ~1.226, so I can resize them again).

Another alternative is one that I don't know about that you awesome people can teach me! I like that one, or being able to access the "reset" button in the "format pictures" tab on the ribbon.

Thanks,

Tim



******** type="cosymantecnisbfw" cotype="cs" id="SILOBFWOBJECTID" style="width: 0px; height: 0px; display: block;"></object>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,647
Messages
6,126,005
Members
449,279
Latest member
Faraz5023

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