Macro question

D

Derek Jones

I am trying to record a macro that will display a
letterhead with a particular font, size, etc. When I
record the macro:

1. I change the font, font size, and turn Bold on.
2. I type what I want my letterhead to display.
3. I enter a couple blank lines.
4. I stop recording.

When I run this macro on a new document, the only
attribute that carries over is the bold. I thought Word
recorded all mouse clicks in the toolbar. I don't want
users to manually enter the font and font size in the VB
code every time one of them wants to create a macro like
this. Is there any way to solve this problem? Thanks.

Derek Jones
Software Support Specialist
Shenandoah University
 
M

martinique

The short answer is, create a template. That's what they're for.

However, to make you recorded macro work, do everything with the keyboard.
In Word there is nothing that absolutely has to be done with the mouse --
there are always keyboard equivalents.
 
D

Dave Lett

Hi Derek,

Instead if creating a template, create a _Style_ that has the attributes:

Font name, size, bold, and space after paragraph (instead of couple of blank
lines)

Apply that style to the text you insert.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top