Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

_Application.PreviousSelections property

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Object this[
	Object Index
] { get; }


Type: System.Object

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

Property value

Type: System.Object

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.