Previous Method
Previous method as it applies to the Browser object.
For the Browser object, moves the selection to the previous item indicated by the browser target. Use the Target property to change the browser target.
expression.Previous
expression Required. An expression that returns one of the above objects.
Previous method as it applies to the Paragraph object.
Returns the previous paragraph as a Paragraph object.
expression.Previous(Count)
expression Required. An expression that returns one of the above objects.
Count Optional Variant. The number of paragraphs by which you want to move back. The default value is 1.
Previous method as it applies to the Range and Selection objects.
Returns a Range object relative to the specified selection or range.
Note If the Range or Selection is just after the specified Unit, the Range or Selection is moved to the previous unit. For example, if the Selection is just after a word (before the trailing space), the following instruction moves the Selection backwards to the previous word.
Selection.Previous(Unit:=wdWord, Count:=1).Select
expression.Previous(Unit, Count)
expression Required. An expression that returns one of the above objects.
WdUnits
Can be one of the following WdUnits constants. |
wdCharacter |
wdWord |
wdSentence |
wdParagraph |
wdSection |
wdStory |
wdCell |
wdColumn |
wdRow |
wdTable |
If expression returns a Selection object, wdLine can also be used. The default value is wdCharacter. |
Count Optional Variant. The number of units by which you want to move back. The default value is 1.
Example
As it applies to the Browser object.
This example moves the insertion point into the first cell (the cell in the upper-left corner) of the previous table.
With Application.Browser
.Target = wdBrowseTable
.Previous
End With
As it applies to the Paragraph object.
This example selects the paragraph that precedes the selection in the active document.
Selection.Previous(Unit:=wdParagraph, Count:=1).Select
As it applies to the Range object.
This example applies bold formatting to the first word in the active document.
ActiveDocument.Words(2) _
.Previous(Unit:=wdWord, Count:=1).Bold = True
Applies to | Browser Object | Paragraph Object | Range Object | Selection Object
See Also | GoToPrevious Method | LinkToPrevious Property | Next Method | NextField Method | PreviousBookmarkID Property | PreviousField Method | PreviousHeaderFooter Method | PreviousRevision Method | PreviousSubdocument Method | Target Property