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

sadams1

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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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