Message 1 of 2
Toolbar Button Click - Identify VBA Macro Command

Not applicable
02-14-2018
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For logging purposes I need to acquire the macro data string when a user clicks a toolbar button (not a ribbon), when the command is VBARUN.
The event handler CommandWillStart event argument gives you the command name, but nothing more.
When the command name is VBARUN I need to know which macro is being called.
For example, in the CUI, if the macro string is:
^C^C-vbarun;fred;
You can't get the value 'fred' in the event handler.
I don't know how to make the connection between the button the user clicked and the macro string 'fred', 'mary' or whatever it is.
Thanks,
Randy