Partager via


Range.Previous Property

Returns a Range object that represents the previous cell.

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

Syntax

'Declaration
ReadOnly Property Previous As Range
    Get
'Usage
Dim instance As Range
Dim value As Range

value = instance.Previous
Range Previous { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Range

Remarks

If the object is a range, this property emulates pressing SHIFT+TAB; unlike the key combination, however, the property returns the previous cell without selecting it.

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

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace