Click to See Complete Forum and Search --> : which object/method to add a Word menu item


gerie1th
November 8th, 2007, 01:11 PM
Hi Friends,

After searching in the Visual Studio object-browser I try to asked you.
My goal is to write VB code that adds a menu item into the MS-Word menu
like spellingcontrol, in order to invoke an activeX. So i would like tho know which object and/or method to address.

regards
Gerie

dglienna
November 8th, 2007, 01:41 PM
Which version of Office? Take a look at the MSTO' (http://msdn2.microsoft.com/en-us/office/aa905533.aspx) developer page

gerie1th
November 9th, 2007, 02:34 AM
office version 2003, I use Visual Studio 2005 the write the VB code in.

The Object name (which I found in Word) is called CommandBars but
I can not find that object within VS-2005 Object Browser

gerie1th
November 13th, 2007, 01:12 AM
afther a while I learned that i missed some basic
knowledge of VB itself. I'had to add the desired
default namespaces by:
> solution explorer -> properties -> references -> Add