RightIndent Property

Microsoft Publisher Visual Basic

expression.RightIndent

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the right indent for all paragraphs in the active document to one inch from the right margin. The InchesToPoints method is used to convert inches to points. This example assumes that there is at least one shape on the first page of the active publication.

Sub SetRightIndent()
    ActiveDocument.Pages(1).Shapes(1).TextFrame _
        .TextRange.Paragraphs(1).ParagraphFormat _
        .RightIndent = InchesToPoints(1)
End Sub