ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Which shape is selected (https://www.excelbanter.com/excel-programming/438884-shape-selected.html)

H.G. Lamy

Which shape is selected
 
Hello,

on a sheet with several drawing objects, how can I programmatically
determine if / which is selected ?

Regards,

H.G. Lamy



Gary''s Student

Which shape is selected
 
Try:

Sub WhichShape()
MsgBox Selection.Name
End Sub

--
Gary''s Student - gsnu201001

H.G. Lamy

Which shape is selected
 
Thank you !

hg

"Gary''s Student" wrote in message
...
Try:

Sub WhichShape()
MsgBox Selection.Name
End Sub

--
Gary''s Student - gsnu201001





All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com