Hi,
I'm new to word automation, any one help highly appreciate
I'm creating new Word Template file and I want to add a new menu item
to existing menu ie File and want to trap click event to it.
I tried with Tool->Customize Commands Tab. In categories selected "New
Menu" and from Command selected "New Menu" drag-drop to File menu but
it appears with sub-menu option
what i want is just a "menu item" without submenu option
anyone can help me on this?, it would be great help if u can send me
steps to create menu item in Word Template and basic code to trap menu
click event in VB automation
Thanks in advance
Regards
Venkatesh
Charles Kenyon - 11 Apr 2006 16:09 GMT
Why are you trapping the click event?
You can use the Customize dialog to add to a menu or toolbar any macro, or
style, or AutoText entry you want. You can rename these. Using vba, you can
change the tooltip text assigned. What is it you want to trap the click
event to do?
Note, if you are using vba to actually change menus or toolbars, make sure
your customization context is set somewhere other than normal.dot and know
what this means.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Hi,
>
[quoted text clipped - 17 lines]
> Regards
> Venkatesh
Jean-Guy Marcil - 11 Apr 2006 16:38 GMT
fromvenky@gmail.com was telling us:
fromvenky@gmail.com nous racontait que :
> Hi,
>
[quoted text clipped - 12 lines]
> steps to create menu item in Word Template and basic code to trap menu
> click event in VB automation
What type of info do you want to trap with this, and what will you do once
you have trapped this info?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Cindy M -WordMVP- - 12 Apr 2006 14:56 GMT
> I'm new to word automation, any one help highly appreciate
>
[quoted text clipped - 10 lines]
> steps to create menu item in Word Template and basic code to trap menu
> click event in VB automation
I think there's some confusion as to
1. Whether you're creating the template file on-the-fly, or will
distribute it?
2. Whether the template file may contain macro code to execute the menu
you want to add?
3. Or whether all code has to be in your VB application? And this is an
application, not a COM Add-in, correct?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)