Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Menus and Toolbars / August 2006

Tip: Looking for answers? Try searching our database.

Advanced customisation of text / spelling right-click menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
neil@cottrell.me.uk - 16 Aug 2006 17:52 GMT
Any help from experts would be greatly appreciated!

I have looked at some of the topics explaining (very clearly) how to
add a menu item to the menu when you right-click on text of a
particular sort (e.g. misspelt words underlined in red).  I would like
to take this a step further and was wondering if the following is
possible, and furthermore whether it is possible to make these changes
using a MACRO, so that a document template (containing this
"installation MACRO") can be opened on any computer, allowing my
friends/colleagues to have the same changes without the faff of delving
into the depths of MS Word.

Rather than adding a menu function, I would like to change the function
of a standard item.  Is it possible to view and edit the script behind
a menu item?  I would like to change the script for the
"autocorrect" menu item, so that when I right-click on a misspelt
word, select "autocorrect" and choose the correct spelling, a macro
will be run.

If it is possible to do this, but not possible to make an
"installation macro" to set it up, it would still be very useful.

Thanks a lot for your help!
Suzanne S. Barnhill - 16 Aug 2006 22:14 GMT
No need for a macro: menu and toolbar customizations, as well as keyboard
shortcuts, can (and should) be saved in document templates. If you want a
specific built-in command to run a macro, you need to give the macro the
name of the command and save it in the appropriate template.

Signature

Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> Any help from experts would be greatly appreciated!
>
[quoted text clipped - 19 lines]
>
> Thanks a lot for your help!
neil@cottrell.me.uk - 17 Aug 2006 09:17 GMT
Oh ok.  Thanks for that.  Just a couple of questions, though:
1.    How do I find the command name for, for example adding an
autocorrect?  Is it "A&utoCorrect" or "AutoCorrect" or
something else?
2.    If another user opens, just once, the template I create, can the
macro then automatically appear in their normal.dot?

Thanks again for your swift response!

Neil :)

> No need for a macro: menu and toolbar customizations, as well as keyboard
> shortcuts, can (and should) be saved in document templates. If you want a
[quoted text clipped - 33 lines]
> >
> > Thanks a lot for your help!
Cindy M. - 17 Aug 2006 11:43 GMT
> Oh ok.  Thanks for that.  Just a couple of questions, though:
> 1. How do I find the command name for, for example adding an
> autocorrect?  Is it "A&utoCorrect" or "AutoCorrect" or
> something else?

The command names for macros never need to contain the accelerators
(ampersands). The command names usually must contain at least the
main menu name. To see a list of commands, open the Macros dialog box
from the Tools menu. There's a dropdown list that specifies the
source for macros (where they're saved). There's an entry in the
dropdown list "Word commands". From this you can learn the name of
the command you want to "intercept"; for example ToolsAutoCorrect.

Note, however, that I don't think you can intercept exactly what it
is you were asking about: "I would like to change the script for the
"autocorrect" menu item, so that when I right-click on a misspelt
word, select "autocorrect" and choose the correct spelling, a macro
will be run."

You might want to ask this in the word.vba.general newsgroup if
anyone has figured out a way to get into this part of Word's
functionality...

> 2. If another user opens, just once, the template I create, can the
> macro then automatically appear in their normal.dot?

It shouldn't be possible, if they have their security set up
correctly. This is how macro viruses propagate...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.