Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form fields in Word headers

Status
Not open for further replies.

Wizdar

Technical User
Sep 4, 2002
86
US
I’m trying to create a Word template that includes a text field in the header. When in the header the Forms toolbar is grayed out. I tried cheating by copying the field, but when I try to paste it in the header, Word tells me I can’t do it.

Surely there must be some way of getting around this?

Office 2003 on XP Pro.
 
Formfields are (generally) for user input. Headers are not (generally) used with user input. They are a different "story", and therefore a different view. Formfields are not available in headers and footers.

What exactly are you trying to do? You can certainly have a formfield (for user input) in the document and then take the result and put it in the header.

Gerry
 
This specific application is a letter template where the Addressee and the Addressee’s Company are listed on the headers for pages 2+.

The autotext feature for the page numbering is already there and functions fine.

This is just a convenience feature. Currently there is text:

[Addressee]
[Addressee’s Company]

I would just like to be able to click the “text prompts” and have them disappear for manual text entry.
 
I would just like to be able to click the “text prompts” and have them disappear for manual text entry.
Huh? What do you mean? Could you explain further?

Gerry
 
How’s this:

Insert a Text Form Field.
Right-click the field and select Properties.
Under Default Text: enter Addressee (or whatever else you like).
Click OK.

This is the “text prompt” I was referring to. Click the field and start typing.

I want a coupla these in the header. Or something like it.
 

For only "click and type prompts", use MACROBUTTON fields which can be created by simply typing them or by going through the Insert > Field menus. To type the field codes:

IMPORTANT! When typing field codes, you MUST insert the field braces by pressing CTRL-F9; otherwise, they will not work!

1. Place cursor where you want a "click and type prompt"
2. Press CTRL-F9 (to insert the field braces)
3. Type MACROBUTTON NoMacro [prompt]
Replace prompt with the text you want displayed
4. Move outside the braces
Repeat steps 1-4 for as many prompts as desired
When done, Ctrl-A (select all)
F9 (update fields; collapses the field codes so that all you see are the prompts)

BEFORE UPDATING, they should look like:
Code:
{ MACROBUTTON NoMacro [Addressee] }
{ MACROBUTTON NoMacro [Addressee's Company] }
AFTER UPDATING, they should look like:
Code:
[Addressee] 
[Addressee's Company]

HTH!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top