How to determine which button was clicked on the modified right-click menu

P

Patrick Choi

I have modified the right-click menu to contain new control items. I wish to
know which button on the newly modified menu was clicked by the user so that
I can appoint differnet macros for different button clicks.

May anyone please give me a clue? Thanks a lot!
 
C

Chip Pearson

Patrick,

You can use the ActionControl property to get a reference to the control
that was clicked. E.g.,

Msgbox Application.CommandBars.ActionControl.Caption
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top