Call Com Addin Toolbar from program
-
I am developping com addins for word. I want to find out if there is a way to click on the customized button in toolbar programmatically. I tried to call like this in module. Application.CommandBars("MYWORDTOOLBAR_NAME").FindControl("MYBUTTON").execute but I am just getting this error message "fail method "Execute" of object CommandBarButton" Do you have any idea why? van
-
I am developping com addins for word. I want to find out if there is a way to click on the customized button in toolbar programmatically. I tried to call like this in module. Application.CommandBars("MYWORDTOOLBAR_NAME").FindControl("MYBUTTON").execute but I am just getting this error message "fail method "Execute" of object CommandBarButton" Do you have any idea why? van
You might want to break that statement up and see if
.FindControl("MYBUTTON")
actually returned aCommandBarButton
before you try and call.Execute()
on it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome