Templates

G

Greg Maxey

Loree,

You can do this with ASK or FILLIN fields and REF fields.

A FILLIN field will PROMPT for input e.g., { FILLIN "What
is your name?"} Your input is is placed at the field
location. You can bookmark this location (call it NAME)
and then use a {REF NAME} field in the four alternate
location. The prompt for FILLIN fields are automatic when
a new document is opened from the template. Problem is
that if you are not careful you can accidently delete teh
bookmark.

An alternative is the ASK field. The ASK field also
PROMPTS for an input and assigns the bookmark name e.g.,
{ASK NAME "What is your name?"}. You then would use 5
{REF NAME} fields to supply data in the required
locations. The ASK field reduces the chances of deleting
the bookmark, but doesn't automatically prompt for input
when you open a new document :-(

You can live with this and simply press CTRL+a and F9 to
manually generate the prompt, or you code include an
AutoNew macro in your template:

Sub AutoNew()
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType < wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub

HTH


-----Original Message-----
I created new templates in Word, I understand how to do
that but my question is if there is anyway to get Word
to "ask" you once for the same information, i.e. a name is
entered in the document 5 times so it will ask you 5 times
for the name. Any suggestions? Thanks!
 

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