A
Art H
Via VBA, how do I tell if direct formatting is applied? What property
do I interrogate to determine if direct character formatting and/or
paragraph formatting is applied?
I can see if direct formatting is applied (Distinguish style source is
checked) via the reveal formatting pane (Shift+F1) in Word 2003/2007.
I want to duplicate that knowledge via VBA. My goal, based on the type
of direct formatting applied, is to selectively remove direct
formatting and maybe apply a different document style (e.g., change
paragraph style from Normal to Body Text if left indent is 0).
I do not want to select the whole document and then reset character
and paragraph formatting as this will remove some necessary direct
formatting (e.g., lists created manually versus using a style). At
this stage of the document creation/modification, I don't have time to
do things right. Yes, I know.
do I interrogate to determine if direct character formatting and/or
paragraph formatting is applied?
I can see if direct formatting is applied (Distinguish style source is
checked) via the reveal formatting pane (Shift+F1) in Word 2003/2007.
I want to duplicate that knowledge via VBA. My goal, based on the type
of direct formatting applied, is to selectively remove direct
formatting and maybe apply a different document style (e.g., change
paragraph style from Normal to Body Text if left indent is 0).
I do not want to select the whole document and then reset character
and paragraph formatting as this will remove some necessary direct
formatting (e.g., lists created manually versus using a style). At
this stage of the document creation/modification, I don't have time to
do things right. Yes, I know.