Dear John,
JF> I need to create a simple macro for inserting my name and address at the
JF> start of a document. I created a template for this but when I go to save
JF> the document, it only allows me to save it as a template and not a
JF> normal document. I am using Word 7.0. Any help on this simple task would
JF> be appreciated.
There are a number of ways to do this in Word 7.0. If you want
to work from a saved document, why don't you simply create an
ordinary letter head as an ordinary document first. You can
create the document easily.
An easy way is the following. Start on a previous document. On
the top left hand corner of the "standard toolbar" is a blank
sheet of paper. Click on that and you will have a blank page.
Set up you letterhead as you like and save it to whatever name
you want. In the example I have below I called my document
"lhwe.doc" ( for LetterHeadEnglish Document).
I created a macro to be started by a key combination "Shift +
Control + E" to run the following macro.
Sub MAIN
InsertFile .Name = "c:\mydocs\word\LHWE.DOC", .Range = "",
.ConfirmConversions = 1, .Link = 0
LineUp 8
EndOfLine 1
CharLeft 1, 1
InsertDateTime .DateTimePic = "DDDD MMMM d, yyyy",
.InsertAsField = 0
StartOfLine
LineDown 1
StartOfLine
End Sub
This macro inserts the document "LHWE.DOC", then goes up to
where the date line is, inserts the date in the format that I
use, then goes down to the line to type in the address to letter
is going to. You can modify the macro all you like.
To make the macro, try the following:
Click on Tools, then on Macro, then at Macro Name you type in
the name of the Macro you want to create. Click on Record, type
in a description, then Assign it to a toolbar or keyboard. To
Assign it to a keyboard combination you simply type in the
combination (eg Ctrl + Shft + E). (If the key combination is
already used, you will be told.) Then click on Assign, then
Close. Then do what you want the macro to do. A "Macro Record"
button will appear on the screen. When you are finished, click
on the left of the 2 buttons to Stop, and you will be done.
Hope this is clear enough to be of help.
Gerald
Gerald Boisvert gerald.boisvert@xonxoff.com
---
þ SPEED 2.00 #1417 þ
--- PCBoard (R) v15.3/M 10
---------------
* Origin: XON/XOFF Information Service (1:12/159)
|