Range.Previous Method
Returns a Range object relative to the specified selection or range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Previous ( _
ByRef Unit As Object, _
ByRef Count As Object _
) As Range
'Usage
Dim instance As Range
Dim Unit As Object
Dim Count As Object
Dim returnValue As Range
returnValue = instance.Previous(Unit, _
Count)
Range Previous(
ref Object Unit,
ref Object Count
)
Parameters
- Unit
Type: System.Object%
Optional Object. WdUnits
- Count
Type: System.Object%
Optional Object. The number of units by which you want to move back. The default value is 1.
Return Value
Type: Microsoft.Office.Interop.Word.Range
Remarks
If the range is just after the specified Unit, the range is moved to the previous unit.