Share via


XmlMappedRange.Next Property (2007 System)

Gets a Range that represents the next cell.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Next As Range
'Usage
Dim instance As XmlMappedRange 
Dim value As Range 

value = instance.Next
[BrowsableAttribute(false)]
public Range Next { get; }
[BrowsableAttribute(false)]
public:
property Range^ Next {
    Range^ get ();
}
public function get Next () : Range

Property Value

Type: Range
A Range that represents the next cell.

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.

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 Sub SelectNext()
    Me.CustomerLastNameCell.Next.Select()
End Sub
private void SelectNext()
{
    this.CustomerLastNameCell.Next.Select();
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace