C
Chris H
Hello All,
I have an issue where I want to add my own menu items in Word but I need it to execute a function in a Word Addin.
Well, I can do anything I need by creating a CommandBarButton but I cannot get to events from the Menu(Command Bar Control).
So is there a way I can make the code in the command bar button execute if I click on my custom menu item?
Note: I am not using VBA at all, so I cannot call a VBA macro.... This is the common method from the internet....
Ex..
Private m_Save_As_Menu_Option As Office.CommandBarControl
some other code to create the menu.....
m_Save_As_Menu_Option.OnAction = "Click/Execute Command Bar Item(546347)"
According to a microsoft Q document, i have to add a custom class to trap the click events of the menu item.... It's weird that the menu items don't work the same.
Thanks in advance,
Chris H
I have an issue where I want to add my own menu items in Word but I need it to execute a function in a Word Addin.
Well, I can do anything I need by creating a CommandBarButton but I cannot get to events from the Menu(Command Bar Control).
So is there a way I can make the code in the command bar button execute if I click on my custom menu item?
Note: I am not using VBA at all, so I cannot call a VBA macro.... This is the common method from the internet....
Ex..
Private m_Save_As_Menu_Option As Office.CommandBarControl
some other code to create the menu.....
m_Save_As_Menu_Option.OnAction = "Click/Execute Command Bar Item(546347)"
According to a microsoft Q document, i have to add a custom class to trap the click events of the menu item.... It's weird that the menu items don't work the same.
Thanks in advance,
Chris H