Partager via


_Worksheet.Previous Property

Returns a Chart, Range, or Worksheet object that represents the previous sheet or cell. Read-only.

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

Syntax

'Declaration
ReadOnly Property Previous As Object
    Get
'Usage
Dim instance As _Worksheet
Dim value As Object

value = instance.Previous
Object Previous { get; }

Property Value

Type: System.Object

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

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace