View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Using ASK and REF to create template that automatically prompts fo

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
Word MVP web site http://word.mvps.org



Kurt wrote:
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?