How to identify the clicked shape name in VBA How to identify the clicked shape name in VBA vba vba

How to identify the clicked shape name in VBA


You should be able to get the name of the clicked shape by using Application.Caller

usage as shown

 CallingShapeName = ActiveSheet.Shapes(Application.Caller).Name  msgbox CallingShapeName


ActiveSheet.Shapes(Application.Caller).TextFrame.Characters.Text