PreviousSelections Property

         Example         Applies To

Returns an array of the last four ranges or names selected. Each element in the array is a Range object. Read-only Variant.

Syntax

expression.PreviousSelections(Index)

expression   Optional. An expression that returns an Application object.

Index   Optional Variant. The index number (from 1 to 4) of the previous range or name.

Remarks

Each time you go to a range or cell by using the Name box or the Go To command (Edit menu), or each time a macro calls the Goto method, the previous range is added to this array as element number 1, and the other items in the array are moved down.