View Single Post
 
Old 12-12-2015, 10:15 AM
paik1002 paik1002 is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Dec 2015
Posts: 63
paik1002 is on a distinguished road
Default 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?
Reply With Quote