I am trying to create an excel template where I have already assigned different macros to different shape that act as buttons. Now I am having problem of locating which one
You should be able to get the name of the clicked shape by using Application.Caller
Application.Caller
usage as shown
CallingShapeName = ActiveSheet.Shapes(Application.Caller).Name msgbox CallingShapeName
ActiveSheet.Shapes(Application.Caller).TextFrame.Characters.Text