Previous Property

Returns the previous object in the collection. Read-only.


This example sets the space-before and space-after formatting for the paragraph immediately preceding the selection.

Set myPara = Selection.Paragraphs(1).Previous
With myPara
    .SpaceAfter = 12
    .SpaceBefore = 6
End With

If the selection is in a table, this example selects the contents of the previous row.

If Selection.Information(wdWithInTable) = True Then
End If

This example displays the field code of the second-to-last field in the active document.

Set aField = ActiveDocument _
MsgBox "Field code = " & aField.Code

Applies to | Cell Object | Column Object | Field Object | FormField Object | MailMergeField Object | Pane Object | Row Object | TabStop Object | TextFrame Object | Window Object