Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommandBar Activation 1

Status
Not open for further replies.

DrGreg1408

Technical User
Feb 8, 2008
30
US
Does anyone know how to tell in VBA which button of a custom toolbar has been activated? Is there such a thing as a ActionSource property that provides the caption or index or some other identifier so I can know in VBA which button was clicked? I'm trying to set up one subroutine that will use a Select Case structure to ascertain which button was clicked and then act accordingly.
Thanks
 
Thanks Tony,
As often seems to happen, I discovered the solution soon after I asked the question. That does not mean, however, that I rushed to ask the question. I had already spent quite a bit of time looking for the solution--Microsoft's VBA Editor help system is almost useless. It seems that just asking the question on a tech forum has a magical ability to cause the answer to pop up elsewhere. Anyway, thanks for the quick response.
gsw
 
Microsoft's VBA Editor help system is almost useless
I find it useful, provided you use the Object Browser (F2).

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top