Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need to identify object selected.
How do I verify if I have selected an object other than a
cell or a range of cells? Can any one pls help. Thanks, -Neil |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need to identify object selected.
If it is only one or if it many cells, the code is the same:
var1 = TypeName(Selection) If var1 < "Range" Then DoStuff Else DontDoStuff End If - Piku -- Message posted from http://www.ExcelForum.com |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need to identify object selected.
Not sure if this will work or help. NameType(activeobject)
If you can stop the code where you want this might help in the immediate window. -----Original Message----- How do I verify if I have selected an object other than a cell or a range of cells? Can any one pls help. Thanks, -Neil . |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need to identify object selected.
Neil,
Sub testit() If Not TypeOf Selection Is Range Then MsgBox "Selection is not a range" End Sub Rob "Neil Bhandar" wrote in message ... How do I verify if I have selected an object other than a cell or a range of cells? Can any one pls help. Thanks, -Neil |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2 Label Options - Forms Object vs Control Box Object | Excel Discussion (Misc queries) | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
Identify User Selected Range | Excel Programming | |||
Identify Range Selected By User | Excel Programming | |||
Range object to Array object conversion | Excel Programming |