How do i add new "Menu Item" to word template and trap its click event?

F

fromvenky

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
 
C

Charles Kenyon

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.
--
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




--------- --------- --------- --------- --------- ---------
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.
 
J

Jean-Guy Marcil

(e-mail address removed) was telling us:
(e-mail address removed) nous racontait que :
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

What type of info do you want to trap with this, and what will you do once
you have trapped this info?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Cindy M -WordMVP-

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
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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top