pictures in comments & sizing problems...

sadams1

Board Regular
Joined
Aug 19, 2006
Messages
219
Inserting pictures into comments is really useful. What I don't understand is to fix the sizing. I know there is "lock aspect ratio" & "relative to original picture size" checkboxes under the "scale" section of the "size" tab when "editing comments".

There are many comments with pictures in the spreadsheet I'm working on and all are in various zoomed in & out percentages. What I'd like to do is return all of them to their original size when inserted into the comment.

I have the following but it isn't for comments...


Sub resetPictureSize()


Dim mapsheet As Worksheet
Set mapsheet = Sheets("Sheet1")
Dim shp As Shape
For Each shp In mapsheet.Shapes
With shp
If .Name Like "*Picture*" Then
.ScaleHeight 1#, True, msoScaleFromTopLeft
.ScaleWidth 1#, True, msoScaleFromTopLeft
End If
End With
Next shp
End Sub


Can this be adapted for pictures in comments?
Thanks!
Steve
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,215,227
Messages
6,123,738
Members
449,116
Latest member
alexlomt

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