Previous Property
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Range.Previous Property

Office 2007
Returns a Range object that represents the next cell.

Syntax

expression.Previous

expression   A variable that represents a Range 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.

Example

This example selects the previous unlocked cell on Sheet1. If Sheet1 is unprotected, this is the cell immediately to the left of the active cell.

Visual Basic for Applications
Worksheets("Sheet1").Activate
ActiveCell.Previous.Select



Show:
© 2016 Microsoft