Thread: macros
View Single Post
  #2   Report Post  
Charles Kenyon
 
Posts: n/a
Default

If you want to use macros, you want to learn to write them, not just record
them. See http://word.mvps.org/FAQs/MacrosVBA/...csIn15Mins.htm. The
recorder can be a starting place but generates very poor code. Many Word
functions can't be reached using the recorder at all.

Looking at http://word.mvps.org/FAQs/MacrosVBA/UsingRecorder.htm it would
appear that names can begin with numbers, but not with punctuation. I
haven't tried it because I try to follow the Word command structure of
naming macros with real words or abbreviations with an uppercase letter
beginning each new word. When you assign a macro to a button, the tooltip is
automatically this name with the words separated by spaces in the tooltip
(but _not_ in the name itself). Example: Sub MoveToTemplate will generate a
tooltip of "Move To Template."

I would recommend looking at Steve Roman's book on Word Macros. It will save
you a lot of time and pain.
--
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://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
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.

"lost in cincy" wrote in message
...
i'm trying to familiarize myself with creating macros, do the macro names
have to begin with a letter or can they begin with any character, eg. 56,
88?