View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default 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