CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    3

    which object/method to add a Word menu item

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: which object/method to add a Word menu item

    Which version of Office? Take a look at the MSTO' developer page
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Nov 2007
    Posts
    3

    Re: which object/method to add a Word menu item

    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
    Last edited by gerie1th; November 9th, 2007 at 10:49 AM.

  4. #4
    Join Date
    Nov 2007
    Posts
    3

    Resolved Re: which object/method to add a Word menu item

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured