Ask Fields

G

Guest

I want to create template that, when opened, prompts the user for 5-6 different pieces of information, then inserts each piece into the document in more than one place

I had it working with the fill-in field, but could not figure out how to place the information in more than one location

I tried using an ask field, but thus far have been unable to figure out how to do it. When the template is opened, I am not prompted to enter anything

I am sure the solution is simple. Yet it eludes me. Any help would be appreciated.
 
G

Greg Maxey

Joe,

Unfortunatey ASK Fields do not prompt for input when documents are opened.
You and fire the prompts manually by pressing F9 when the document opens or
you can use and AutoNew macro in the template:

Sub AutoNew()
'Updates All Fields in Active Document
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
 
S

Suzanne S. Barnhill

This sounds like a good case for a UserForm. See
http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Joe said:
I want to create template that, when opened, prompts the user for 5-6
different pieces of information, then inserts each piece into the document
in more than one place.
I had it working with the fill-in field, but could not figure out how to
place the information in more than one location.
I tried using an ask field, but thus far have been unable to figure out
how to do it. When the template is opened, I am not prompted to enter
anything.
I am sure the solution is simple. Yet it eludes me. Any help would be
appreciated.
 

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