#1   Report Post  
lost in cincy
 
Posts: n/a
Default macros

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?
  #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?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative to macros for creating menu-driven functions? Widmer Microsoft Word Help 5 February 7th 05 06:27 AM
How do we make our macros "signed"? StargateFan New Users 6 February 6th 05 03:47 PM
Macros in 2003 multiple but connected problems? V-ger Microsoft Word Help 8 January 18th 05 09:42 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM
Macros in Normal.dot BenJ Microsoft Word Help 3 November 26th 04 11:08 AM


All times are GMT +1. The time now is 06:54 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"