pictures in comments & sizing problems...

sadams1

Board Regular
Joined
Aug 19, 2006
Messages
221
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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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