#1
|
|||
|
|||
How to detect which object has been selected
I'd like to detect(1,2,3) if the selection is one of the following objects:
1. image (inlineshapes) 2. figure (circle) 3. text I am thinking in the line of(pseudo-code): if selection is an image type, then do something... else if selection is a figure type (circle), then do something... else if selection is text, then do something... else show msgbox alerting none of the above was selected Can it be done? |
#2
|
||||
|
||||
The Selection.Type property returns one of 9 values:
0 No selection. 1 An inline paragraph selection. 2 A normal or user-defined selection. 3 A frame selection. 4 A column selection. 5 A row selection. 6 A block selection. 7 An inline shape selection. 8 A shape selection
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Detect Category Change | ScottA | Excel | 3 | 05-07-2014 05:48 AM |
Detect in VBA if document has been changed | nsv | Word VBA | 4 | 04-28-2014 05:58 AM |
Detect a cell has un-approved change or not? | LongTTH | Excel Programming | 1 | 05-20-2012 02:22 AM |
auto-detect display options? | davidt76 | PowerPoint | 0 | 09-30-2011 07:26 AM |
Is there a way to detect duplicate dates as I enter them? | Karin | Excel | 1 | 03-04-2011 12:56 PM |