Range.Next(Object, Object) Range.Next(Object, Object) Method

Definition

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

public Microsoft.Office.Interop.Word.Range Next (ref object Unit, ref object Count);
Public Function Next (Optional ByRef Unit As Object, Optional ByRef Count As Object) As Range

Parameters

Unit

Optional Object. The type of units by which to count. Can be any WdUnits constant.

Count

Optional Object. The number of units by which you want to move ahead. The default value is one.

Returns

Remarks

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

Applies to