#1
|
|||
|
|||
Fill-in fields
I have an Word template with three Fill-In fields in the header. Every time I open the document it asks me three questions and fills in my responses for me. Problem is every time I print preview the document or print it, I am asked the same three questions again. Is there anyway to limit the Fill-In prompt to only appear once when the template is opened? Thanks in advance for any help |
#2
|
|||
|
|||
You need to turn off the "Update Fields When Printing" option.
See the tutorial on ASK and FILL-IN fields. Tutorials Once you know how to use them, UserForms are generally easier, but you need to be able to run macros. Create & Employ a Userform |
#3
|
||||
|
||||
Quote:
Quote:
A simpler way might be to use a Document_New or Document_Open macro with a couple of InputBoxes to populate built-in or custom document properties that can be referenced via a DOCPROPERTY field.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Thanks for the suggestions, I am afraid that hasn't worked. See attached
|
#5
|
|||
|
|||
Before I look, you had four suggestions. Which one hasn't worked?
|
#6
|
|||
|
|||
Quote:
I've turned off Update Fields When Printing to no avail. I cannot use macros as they are not allowed in my organisation and I don't understand what the IF ASK option is. Thanks for looking at this |
#7
|
||||
|
||||
To avoid the FILLIN fields prompting the user to answer the same questions again, replace them with fields coded as:
1. In the template document, create ASK fields in the format: {QUOTE{IF{Subject}= "" {ASK Subject "What are the photographs of?" \d ""} ""}{Subject}} {QUOTE{IF{DtTm}= "" {ASK DtTm "Date and/or time photographs taken?" \d ""} ""}{DtTm}} {QUOTE{IF{Flare}= "" {ASK Flare "Flare reference (if you have one)" \d ""} ""}{Flare}} where Subject, DtTm, Flare, respectively, are bookmarks named to match the particular question. 2. Then, at the start of each field, create an empty bookmark corresponding to the bookmark (Subject, DtTm, Flare, respectively) for that field (this is to avoid bookmark reference errors). You can do this using a SET field (eg {SET BkMrk ""}, where BkMrk is the bookmark name, inserted before the "{QUOTE" or via Insert|Bookmark (with nothing selected). 3. Save the template. If you created the bookmark via Insert|Bookmark, don’t answer the question before saving the template, otherwise you’ll have to delete the bookmark and re-create it. Now, when a document based on the template is previewed or printed, users will only be prompted to update any ASK fields they haven't answered. Note1: If you use a SET field (e.g. {SET Subject ""}) to create the bookmark, it will clear the bookmark every time the document is opened, and you’ll be prompted to answer the questions again if you try to re-print the document. In that case, you could delete the \d "" switches from the ASK fields to retain the previous answers. Note2: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
Very well-thought-out answer. With your permission, I will add it to my tutorial, with attribution.
|
#9
|
||||
|
||||
By all means, Charles.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#11
|
|||
|
|||
Quote:
I have then used Ctrl+F9 again before this and typed in {SET BkMrk ""} before the “{QUOTE” But when I save the document as a template and re-open it I am not prompted to answer any of the questions. Where am I going wrong please? |
#12
|
||||
|
||||
Instead of BkMrk, you need to use Subject, DtTm, Flare, respectively (assuming they're your bookmark names).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#13
|
|||
|
|||
Apologies but this isn't working for me - any chance of sending me an example document so I can compare and see what is going wrong please?
|
#14
|
||||
|
||||
See attached document, with field codes in-situ. You can re-save it as a template.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
recipients of form cannot fill out fields | shellypav | Word | 6 | 07-15-2015 12:31 PM |
Fill Word fields as well as edit document | Chim20 | Word | 1 | 11-10-2014 01:48 PM |
Unable to fill in form fields | jorgen | Word | 6 | 04-25-2013 06:59 AM |
how to delete fill-in fields | nitinjain121 | Word | 2 | 03-05-2009 03:30 PM |
How to pre-fill Subject: and Body: fields in Web Outlook | MicroDens | Outlook | 0 | 07-31-2008 01:35 AM |