Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
can the actual macro-calling shape be identified when there are 2 shapes assigned to the same VBA-procedure ? Thank you in advance. Regards, hglamy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
msgbox application.caller You'll see the name of the shape that's calling the macro... You can use: dim myShape as shape set myshape = activesheet.shapes(application.caller) then use all the properties for that shape msgbox myshape.name & vblf & myshape.topleftcell.address & ... "H.G. Lamy" wrote: Hello, can the actual macro-calling shape be identified when there are 2 shapes assigned to the same VBA-procedure ? Thank you in advance. Regards, hglamy -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub dural()
MsgBox Application.Caller End Sub -- Gary''s Student - gsnu201001 "H.G. Lamy" wrote: Hello, can the actual macro-calling shape be identified when there are 2 shapes assigned to the same VBA-procedure ? Thank you in advance. Regards, hglamy . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you, Dave
hgl "Dave Peterson" wrote in message ... Try: msgbox application.caller You'll see the name of the shape that's calling the macro... You can use: dim myShape as shape set myshape = activesheet.shapes(application.caller) then use all the properties for that shape msgbox myshape.name & vblf & myshape.topleftcell.address & ... "H.G. Lamy" wrote: Hello, can the actual macro-calling shape be identified when there are 2 shapes assigned to the same VBA-procedure ? Thank you in advance. Regards, hglamy -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Which Shape Ran The Macro? | Excel Programming | |||
my curser changed from arrow shape to a cross shape???? | New Users to Excel | |||
Assigning Macro To Shape | Excel Programming | |||
Deleting a shape and the cell contents the shape is in. | Excel Programming | |||
Deleting a shape and the cell contents the shape is in. | Excel Programming |