C
christophercbrewster via OfficeKB.com
The VBA help file shows how to set a hanging indent:
ActiveDocument.Paragraphs(1).TabHangingIndent(2)
The "2" signifies that the hanging indent is set with the value of the second
tab stop. What I need to do is read this value for a selected paragraph--
that is, what tab stop is used as the hanging indent for this paragraph? VBA
always seems to make the "get" function obscure. I've tried lines like this:
' Gives message "Argument not optional"
TabNumUsedForHang = Selection.Paragraphs(1).TabHangingIndent
' Gives message "Object does not support this object or method"
TabNumUsedForHang = Selection.ParagraphFormat(1).TabHangingIndent
Can someone show me how to get this value? I'd like to add a function like
Value( ) around this just to see what the setting is. Thanks for any help.
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200701/1
ActiveDocument.Paragraphs(1).TabHangingIndent(2)
The "2" signifies that the hanging indent is set with the value of the second
tab stop. What I need to do is read this value for a selected paragraph--
that is, what tab stop is used as the hanging indent for this paragraph? VBA
always seems to make the "get" function obscure. I've tried lines like this:
' Gives message "Argument not optional"
TabNumUsedForHang = Selection.Paragraphs(1).TabHangingIndent
' Gives message "Object does not support this object or method"
TabNumUsedForHang = Selection.ParagraphFormat(1).TabHangingIndent
Can someone show me how to get this value? I'd like to add a function like
Value( ) around this just to see what the setting is. Thanks for any help.
--
Christopher Brewster
Lockheed Martin, Eagan MN
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200701/1