P
Patrick386
Hello!
I have created a dropdown menu (msoControlPopup control) attached to a commandbar.
The thing is this dropdown menu is composed of buttons created dynamically depending on a list selected from a table.
so I can have 0, 2 or 100 buttons depending on the items found on the table.
my problem deals with the property OnAction of the buttons.
because they must have different actions, I cannot give them all a different procedure name, because I'll need to set procedure1, procedure2... 100
or to set one procedure with a received parameter.
but OnAction does not let a place for any parameter.. only the procedure name
so how can I know which button was clicked if I cannot make a different procedure (because of the dynamic number of buttons)?
Thanks in advance!
I have created a dropdown menu (msoControlPopup control) attached to a commandbar.
The thing is this dropdown menu is composed of buttons created dynamically depending on a list selected from a table.
so I can have 0, 2 or 100 buttons depending on the items found on the table.
my problem deals with the property OnAction of the buttons.
because they must have different actions, I cannot give them all a different procedure name, because I'll need to set procedure1, procedure2... 100
or to set one procedure with a received parameter.
but OnAction does not let a place for any parameter.. only the procedure name
so how can I know which button was clicked if I cannot make a different procedure (because of the dynamic number of buttons)?
Thanks in advance!