ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comment Automargins property (https://www.excelbanter.com/excel-programming/404462-comment-automargins-property.html)

PO

Comment Automargins property
 
Hi,

I'm trying to write code to change a comments margins:

Selection.ShapeRange.TextFrame.MarginLeft = 7.09

For the effects to take effect however you have to turn off the automargin
property. You can do this manually (unchecking the checkbox in the Format
Textbox dialog) but there doesn't seem to be a way to do this
programmatically(?).

Selection.ShapeRange.TextFrame.AutoMargins = False raises an error.

Regards
Pete




All times are GMT +1. The time now is 10:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com