Share via


Range.Next Method

Returns a Range object that represents the specified unit relative to the specified range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Next ( _
    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.Next(Unit, Count)
Range Next(
    ref Object Unit,
    ref Object Count
)

Parameters

  • Unit
    Type: System.Object%
    Optional Object. The type of units by which to count. Can be any WdUnits constant.
  • Count
    Type: System.Object%
    Optional Object. The number of units by which you want to move ahead. The default value is one.

Return Value

Type: Microsoft.Office.Interop.Word.Range

Remarks

If the range is just before the specified Unit, the range is moved to the following unit.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace