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?
|