View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
PO PO is offline
external usenet poster
 
Posts: 66
Default 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