|
Use FILLIN or ASK fields. To do this, select Insert + Field. Then select
“Fillin” or
“Ask”, add the appropriate text and click OK.
If you get
stuck, look up the topic “Examples of ASK and FILLIN fields” in Word's Help.
Having inserted the fields, you can simply paste the following code into a little macro called
AutoNew, which will update the fields and display the appropriate prompts when a user
creates a new document based on your template, and then unlink them so the prompts don't keep reappearing.
If you give a macro the name AutoNew, it will automatically run when a user selects File + New and
select the template.
To create the macro, select Tools + Macro + Macros, where it says “Macros In” select the
template; where it says Macro Name, type AutoNew; and click create. Then paste the following
code into your macro, save, and you're done:
Sub AutoNew()
Dim Fld As Field
ActiveDocument.Fields.Update
For Each Fld In ActiveDocument.Fields
If Fld.Type = wdFieldAsk Or
Fld.Type = wdFieldFillIn Then
Fld.Unlink
End If
Next Fld
End Sub
This is similar to the way WordPerfect users are used to doing it. But the unfortunate souls
who have to use this type of template will quickly get fed up with having to fill in a whole series
of separate prompts one after another after another after another ... which is why professionally
designed templates always use userforms.
|