R
RossW
My goal is to have a custom shortcut menu associated with a form control
which will let users right-click and select an item from a list which is
derived from records in a table. The problem so far is how do I detect and
react when a user selects an item?
I've got code written which creates a new shortcut menu and adds a
msoControlPopup control which in turn has msoControlButton controls added to
it based on records in a table. I can't use the OnAction property for these
items (I don't think) since that property doesn't take input parameters and I
need to know which item they selected. Is it possible to assign the same
OnAction function to each item in the popup and then write code to detect
which button was clicked, or do I need a WithEvents?
Any help would be greatly appreciated.
which will let users right-click and select an item from a list which is
derived from records in a table. The problem so far is how do I detect and
react when a user selects an item?
I've got code written which creates a new shortcut menu and adds a
msoControlPopup control which in turn has msoControlButton controls added to
it based on records in a table. I can't use the OnAction property for these
items (I don't think) since that property doesn't take input parameters and I
need to know which item they selected. Is it possible to assign the same
OnAction function to each item in the popup and then write code to detect
which button was clicked, or do I need a WithEvents?
Any help would be greatly appreciated.