Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the TypeOf operator. E.g.,
If TypeOf Selection Is Excel.Range Then Debug.Print "range" Else Debug.Print TypeName(Selection) End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Jeff Higgins" wrote in message ... How can I determine if the Application.Selection is a Range type object? Is there a way test way to test like this: If Application.Selection Is Range Then 'Then do some thing with the range. End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why does Selection.PasteSpecial toggle Application.ScreenUpdating | Excel Worksheet Functions | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
VBA application; Subscript Out of Range | Excel Programming |