T
Tim Golobic
Using Office vX ...
I have a CommandBar with 20 buttons. Each button has it's own macro
assigned to it, but the each macro just sends a single variable to
another macro which does the rest of the work.
Instead of having a macro for each button, I would like to have them
all use the same macro and use the Caption of the button as the
variable in the main macro. Although I can retrieve the Caption by
specifying a button in the code (still requires macro for each
button), I can't figure out a way to get the caption of the "clicked
button", regardless of which button is clicked. Thoughts on a
solution?
Hopefully that makes a bit of sense.
Thanks
Tim
I have a CommandBar with 20 buttons. Each button has it's own macro
assigned to it, but the each macro just sends a single variable to
another macro which does the rest of the work.
Instead of having a macro for each button, I would like to have them
all use the same macro and use the Caption of the button as the
variable in the main macro. Although I can retrieve the Caption by
specifying a button in the code (still requires macro for each
button), I can't figure out a way to get the caption of the "clicked
button", regardless of which button is clicked. Thoughts on a
solution?
Hopefully that makes a bit of sense.
Thanks
Tim