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