Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
referring to the button that triggered the macro
Hello,
In one of my subs I need to capture the name of the button that triggered it. Something like right(thisbutton.name,3). Could anyone tell me how to do this? Thanks a lot. Herman |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
referring to the button that triggered the macro
Right(Application.Caller,3)
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ... Hello, In one of my subs I need to capture the name of the button that triggered it. Something like right(thisbutton.name,3). Could anyone tell me how to do this? Thanks a lot. Herman |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
referring to the button that triggered the macro
Callername = Right(Parent.Parent.Caller, 3)
MsgBox Callername " wrote: Hello, In one of my subs I need to capture the name of the button that triggered it. Something like right(thisbutton.name,3). Could anyone tell me how to do this? Thanks a lot. Herman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Referring to Option Button in If then statement | Excel Discussion (Misc queries) | |||
Runing two macros triggered by a button | Excel Discussion (Misc queries) | |||
Runing two macros triggered by a button | Excel Discussion (Misc queries) | |||
Referring to an option button in formula...? | Excel Programming | |||
Create event triggered by Pivot Chart field button | Excel Programming |