Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to know if a range has been selected
Like the difference between selecting a range or an object (chart/button/...)??
If TypeName(Selection) = "Range" Then MsgBox "it's a range!" Else MsgBox "it's not a range...it's a: " & TypeName(Selection) End If Maria wrote: I'm fairly new to excel vba. Can someone tell me how to determine if a range has been selected on a worksheet? If a selection has not been made, I need to display a message to the end user. -- Regards. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I edit a selected range then copy the range into an new sheet??? | Excel Programming | |||
Get Name of Selected Range | Excel Programming | |||
Compare a selected Range with a Named range and select cells that do not exist | Excel Programming | |||
How can I set a range can't be selected! | Excel Programming | |||
Box around selected range | Excel Programming |