method to format comment "lock aspect ratio" setting all to "true" under "size" tab...

sadams1

Board Regular
Joined
Aug 19, 2006
Messages
221
I have the following to set "shadow" to false but don't know how to do the same for the "lock aspect ratio" setting to true.


Sub Comments_Format()
Dim cmt As Comment
For Each cmt In ActiveSheet.Comments

cmt.Shape.Shadow.Visible = msoFalse

Next cmt
End Sub


Where would I find this method?
Thanks!
Steve
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about:

Code:
cmt.Shape.LockAspectRatio = msoTrue
 
Upvote 0
How about:

Code:
cmt.Shape.LockAspectRatio = msoTrue



SWEET! Greatly appreciate it.
I've been looking for the toggle under the "lock aspect" for "relative to original size" but this looks different. This is what I've found:

ShapeRange.ScaleHeight Method (Excel)

So tried something like this but can't get it to work (I'm definitely not a programmer!)

cmt.Shape.ScaleHeight 1, msoTrue = msoTrue

Am I close?
 
Upvote 0
Thanks for the feedback. Unfortunately, I do not know the answer to your question.

Good Luck!
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
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