Macros

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I create a macro in Word 2003 it opens in the default font of the docoment rather than in the font in which the macro was written (a letterhead macro, for example). This was not the case with Word 2000. Any ideas, solutions would be appreciated.
 
Macros simply a series of commands. What is it that your macro is supposed
to do that it isn't doing?
What do you mean by 'it opens in the default font'?
If you have a problem with the code, it would probably be better if you
posted, with the code in question pasted into the message, into one of the
Word vba groups.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
In Word Perfect macros are often used to store text. There are better tools
for this in Word, specifically custom templates and AutoText. You would use
custom templates for things like letterhead. To create a letter, create a
new document based on your letterhead template (File => New). AutoText is
for phrases, paragraphs, graphics, tables, that you want to be able to use
over and over again in different documents. It is stored in templates,
normal.dot by default.

Using a macro to produce your letterhead from scratch is a bit like using a
power chisel in place of a screw driver. It may get the job done but it will
be doing it the hard way and may cause some unexpected damage along the way.
I do use macros to produce my letterhead, but the component parts are
stored, not created each time from scratch. Most people don't bother with
the macros.

The font is almost certainly determined by the style present when you run
your macro. AutoText can store the style information with your text.
Templates always will do this.

Now here is some information you may need and not know that you need. It may
also be just a rant that you can shrug off:

Word and Word Perfect work very differently from one another. Each program's
methods have strengths and weaknesses; but, if you try to use one of these
programs as if it were the other, it is like pushing on a string! You can
easily make a lot of extra work for yourself. If you are unwilling to take
the time to learn to use Word's methods, you should stick to using Word Pad.
You'll have a lot less grief, although you'll miss out on a lot of raw
power.

See <URL: http://www.mvps.org/word/FAQs/General/WordVsWordPerfect.htm>
<URL: http://www.mvps.org/word/FAQs/General/TipsAndGotchas.htm>
<URL: http://www.mvps.org/word/FAQs/General/RevealCodes.htm>
<URL: http://www.mvps.org/word/FAQs/General/WordPerfectConverters.htm>
<URL:
http://businesssoft.about.com/compute/businesssoft/library/blconvert.htm>
for information on Word for Word Perfect users.

For more:
<URL: http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart2.htm>
<URL: http://www.mvps.org/word/FAQs/Customization/CreateATemplatePart1.htm>
<URL: http://www.mvps.org/word/FAQs/Numbering/WordsNumberingExplained.htm>
<URL: http://www.mvps.org/word/FAQs/Customization/WhatTemplatesStore.htm>

In Word 2000 (or later) You can get the function keys to display in a
special toolbar at the bottom of the screen if you want (something like
pressing F3 twice in WP). The following macro will do this.
Sub ShowMeFunctionKeys()
Commandbars("Function Key Display").Visible = True
End Sub

Learn about Styles - really learn! I resisted for years and now regret every
day of those years because although that string was still very hard to push,
it kept getting longer and longer, and had some very important projects tied
to it!

--

Charles Kenyon

See the MVP FAQ: <URL: 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.

Manfred said:
When I create a macro in Word 2003 it opens in the default font of the
docoment rather than in the font in which the macro was written (a
letterhead macro, for example). This was not the case with Word 2000. Any
ideas, solutions would be appreciated.
 
Back
Top