Using ASK and REF to create template that automatically prompts fo

K

Kurt

I need a template that will can be used to set up outlines that prompt for
some text. I have two variables to use in both the title of the outline and
the header of pages of the outline. when I try to create a template, I
insert the ASK field, and it asks me for some input; then I input the REF
field. I repeat for the second variable. Then, I try to save the template.
But when I try to create a New document using the Template, it has the
variables already assigned to either the default or the text I used when
setting up.

HOw do I create a template to do this, or a macro that will start a new
document and require updating the variables?
 
G

Graham Mayor

Add an autonew macro to the template as follows:

Sub Autonew()
ActiveDocument.Fields.Update
End Sub

http://www.gmayor.com/installing_macro.htm

If there are fields in the headers/footers or other parts of the document
that are not updated - then use the sample update code on that web page as
an autonew instead.

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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