Share via


RightIndent Property [Publisher 2003 VBA Language Reference]

Returns or sets a Variant that represents the right indent (in points) for the specified paragraphs. Read/write.

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

Applies to | ParagraphFormat Object