I have a dot file. I have added a custom menu and to the menu I have added a dropdown with:
ActiveDocument.CommandBars("Checkit-med").Controls.Add Type:= msoControlDropdown
The Dropdown Control I have named "ddTM" and in the ThisDocument_Open event I read all Bookmark names into this Dropdown.
Everything works fine till now.
Problem: My goal is, that if the user chooses a Bookmark name in the DropdownControl the Bookmark with the same name as the dropdown text should be selected. The user chooses with the dropdown Control in the menu per example "Bookmark1" an event is triggered and the Bookmark "bookmark1" is selected.
But how can I trigger an event to his dropdown control in the menu?
Or should I use something like Selection.InlineShapes.AddOLEControl ClassType:="Forms.ComboBox.1"?
Then I have an event, but I do not know how to get such an OLEControl into the menu.
Please help. Thanks for any afford.