Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Populate multiple areas of a template using fillin fields
How do I insert a field such as 'fillin' or 'ask' so that when a Word
Template is opened the requested information populates many areas of the document. Example: I want the user to be asked to record the title of a product and I want this to populate the title page, the footer, the header and three other places in the document too. I can set up six seperate 'fillin' fields but it measn the user having to type in the same details six times into six dialogue boxes. The help section says you can do it using 'ask' and 'ref' fields but these need a bookmark which won't be created until the user has opened the template! |
#2
|
|||
|
|||
For just one piece of data, the simplest thing to do is insert { Docvariable
"varname" } fields at the locations where you want the data to appear and have an autonew macro that causes an InputBox to appear so that the user can enter the information into and then updates the fields in the document so that the data is displayed. The following is the basics of the code for the autonew macro With ActiveDocument .Variables(varname).Value = InputBox("Enter whatever it is here", "Title for Input Box") .PrintPreview .ClosePrintPreview End With For multiple pieces of data, it would be better to use a Userform. See the article "How to create a Userform" at: http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Colinhp" wrote in message ... How do I insert a field such as 'fillin' or 'ask' so that when a Word Template is opened the requested information populates many areas of the document. Example: I want the user to be asked to record the title of a product and I want this to populate the title page, the footer, the header and three other places in the document too. I can set up six seperate 'fillin' fields but it measn the user having to type in the same details six times into six dialogue boxes. The help section says you can do it using 'ask' and 'ref' fields but these need a bookmark which won't be created until the user has opened the template! |
#3
|
|||
|
|||
See http://gregmaxey.mvps.org/Repeating_Data.htm
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Colinhp" wrote in message ... How do I insert a field such as 'fillin' or 'ask' so that when a Word Template is opened the requested information populates many areas of the document. Example: I want the user to be asked to record the title of a product and I want this to populate the title page, the footer, the header and three other places in the document too. I can set up six seperate 'fillin' fields but it measn the user having to type in the same details six times into six dialogue boxes. The help section says you can do it using 'ask' and 'ref' fields but these need a bookmark which won't be created until the user has opened the template! |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple choice test template for 5 poss answers each quest | Microsoft Word Help | |||
Spell check doesn't work in a word template used by multiple users | Microsoft Word Help | |||
FILLIN Field and Word Template -> Blank document :( | Microsoft Word Help | |||
FILLIN Field and Word Template -> Blank document :( | Mailmerge | |||
How can I apply a template to multiple documents? | New Users |