XmlMappedRange.Next Property

Definition

Gets a Range that represents the next cell.

public Microsoft.Office.Interop.Excel.Range Next { get; }

Property Value

A Range that represents the next cell.

Examples

The following code example uses the Next property to select the cell to the right of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void SelectNext()
{
    this.CustomerLastNameCell.Next.Select();
}

Remarks

This property emulates the TAB key, although the property returns the next cell without selecting it.

On a protected sheet, this property returns the next unlocked cell. On an unprotected sheet, this property always returns the cell immediately to the right of the specified cell.

Applies to