If you are unsure of which Visual Basic method or property to use, you can turn on the macro recorder and manually perform the action. The macro recorder translates your actions into Visual Basic code. After you've recorded your actions, you can modify the code to do exactly what you want. For example if you don't know what property or method to use to indent a paragraph, do the following:
View the Visual Basic code to determine the property that corresponds to the left paragraph indent (the LeftIndent property). Position the insertion point within LeftIndent
and press F1 or click the Help button. Within the topic, you can view examples and review the objects that support the LeftIndent property (click Applies To).
Note Recorded macros use the Selection property to return the Selection object. For example, the following instruction indents the selected paragraphs by a half inch.
Selection.ParagraphFormat.LeftIndent = InchesToPoints(0.5)
You can, however, modify the recorded macro to work with Range objects. For information, see Revising recorded Visual Basic macros.