NamedRange::Previous Property
Gets a Microsoft.Office.Interop.Excel::Range that represents the previous cell.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Property Value
Type: Microsoft.Office.Interop.Excel::Range^A Microsoft.Office.Interop.Excel::Range that represents the previous cell.
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.
The following code example creates a NamedRange and then uses the Previous property to select the cell to the left of the NamedRange.
This example is for a document-level customization.
Show: