Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 42 ยท Mail Merge, Macros and Automation

Quick Parts, Fields and Content Controls in Word

Reuse text with Quick Parts and Building Blocks, insert fields such as DATE and PAGE, and build fillable forms with content controls: text, checkbox, dropdown and date picker.

Three features turn a static document into something that reuses content and reacts to data. Quick Parts and Building Blocks store snippets you insert again and again. Fields are small instructions that display live values (page numbers, dates, document properties). Content controls are interactive placeholders that make fillable forms. Learn them together: they share the same Quick Parts menu.

Building Blocks and Quick Parts

A building block is a saved piece of content with a name, such as a company address block, a disclaimer, a signature or a cover page. Word's own cover pages, headers and text boxes are building blocks too. Quick Parts is the gallery that lists the ones in the General category.

Create one

  1. Select the content (text, a table, a picture, with its formatting).
  2. Insert > Quick Parts > Save Selection to Quick Part Gallery... (Alt+F3).
  3. Fill in the Name, Gallery (Quick Parts, Cover Pages, Headers, Footers, Text Boxes...), Category, a Description, the Save in location (Building Blocks.dotx to keep it for all documents), and Options (insert content only, in its own paragraph, or in its own page).
  4. Click OK.

Use it

  • Insert > Quick Parts and click the entry, or right-click it and choose Insert at Current Document Position, Insert at Beginning/End of Document, or other locations.
  • AutoText shortcut: type the first letters of the name and press F3, or press Enter at the suggestion bubble. So sig + F3 can insert a full signature block.

Manage

Insert > Quick Parts > Building Blocks Organizer... lists everything, with preview. Use Edit Properties..., Delete and Insert. Sort by name, gallery or category.

Name your building blocks with a short, unique prefix (for example "co-address", "co-disclaimer"). They sort together in the organizer and the AutoText suggestion stays predictable.

Fields

A field is a code that Word evaluates to produce text. You have already met several: the TOC, SEQ for captions, MERGEFIELD. Common fields:

Field Shows Example
PAGE The current page number { PAGE }
NUMPAGES Total pages Page { PAGE } of { NUMPAGES }
DATE Today's date (updates) { DATE \@ "dddd, MMMM d, yyyy" }
CREATEDATE, SAVEDATE Document dates { SAVEDATE \@ "yyyy-MM-dd" }
AUTHOR, TITLE Document properties { TITLE }
FILENAME File name (switch \p for path) { FILENAME \p }
REF Text of a bookmark { REF Client_Name }
IF Conditional text { IF { REF Paid } = "yes" "Thank you" "Payment due" }
= (formula) A calculation { = 12 * 4.5 \# "0.00" }
SEQ A counter { SEQ Figure }
STYLEREF Text of the nearest heading style { STYLEREF "Heading 1" }

Insert and edit

  • Insert > Quick Parts > Field... shows categories, a list of field names and options.
  • Or press Ctrl+F9 to create empty field braces { } and type inside them. You cannot type braces by hand.
  • Alt+F9 toggles all field codes; Shift+F9 toggles the current one.
  • F9 updates the selected field(s); Ctrl+A, F9 updates all in the body. F11 and Shift+F11 move to the next and previous field. Ctrl+F11 locks a field so it does not update, and Ctrl+Shift+F11 unlocks it. Ctrl+Shift+F9 unlinks a field and leaves its current result as plain text.
  • Switches after a backslash control the result: \* Upper, \* Caps, \# "0.00" (numeric picture), \@ "yyyy-MM-dd" (date picture), \* MERGEFORMAT (keep manual formatting).

Fields that depend on the current page, such as PAGE, belong in the header or footer. Use Insert > Page Number for the common case, and Header & Footer > Document Info for properties.

STYLEREF in a header is how books show the current chapter name at the top of each page: { STYLEREF "Heading 1" } prints the text of the most recent Heading 1.

Date and number pictures

This runnable stand-in mimics how a picture switch such as \@ "dddd, MMMM d, yyyy" turns a date into text. It supports a handful of tokens and is not the full Word grammar.

Python Date picture switch (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Content controls and fillable forms

A content control is a bounded area on the page that people fill in without changing the rest of the document. Use them for forms, templates for reports, and quick surveys. Enable the Developer tab first (File > Options > Customize Ribbon), then use the Controls group.

Control Purpose
Rich Text Formatted text, pictures, tables
Plain Text Text without formatting; one line or several
Picture A placeholder for a picture
Building Block Gallery A choice among stored blocks
Check Box A clickable tick box
Combo Box A list that also accepts typing
Drop-Down List A fixed list of options
Date Picker A calendar and a date format
Repeating Section A row or block the user can repeat (lines of an invoice)

Steps to build a simple form:

  1. Type the labels ("Name:", "Date:", "Department:") inside a two-column table, which keeps the layout tidy.
  2. Click in the answer cell and add a control from Developer > Controls.
  3. Select the control and click Properties: set Title and Tag, the Show as style (bounding box, start/end tags, none), a color, and tick Content control cannot be deleted and Contents cannot be edited where needed. For a drop-down, Add... each choice. For a date picker, choose the Display the date like this format.
  4. Click Design Mode and edit the placeholder text ("Click to enter name"), which appears until someone types. Turn Design Mode off again.
  5. Choose Developer > Restrict Editing > Filling in forms to lock everything except the controls (see Compare, Share, Protect and Sign). Save as a template (.dotx) so each use starts from a clean copy.

Links between controls: if two controls have the same Tag and Title, changing one updates the other. This is a quick way to repeat a name in a letter. Group controls together with Group to lock a region against editing and deletion.

Legacy form fields (from the Legacy Forms menu) still exist for compatibility, but content controls are the modern choice.

Data in a form

Each control carries a title, a tag and a value. A form is a small data structure in which controls are fields. This stand-in validates a filled form, something a macro or later process would do.

Python Validate a filled form (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

An HTML form shows the same controls in a browser (printing the data instead of sending it anywhere).

A fillable form with a drop-down and checkbox

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which key inserts empty field braces { } that you can type inside?

    Ctrl+F9 creates field characters. Typing braces by hand does not work.
  2. 2. Which field shows the text of the most recent Heading 1, useful in running headers?

    STYLEREF "Heading 1" displays the current chapter title.
  3. 3. How do you prevent form users from changing anything except the controls?

    Filling in forms editing restriction leaves content controls editable and locks the rest.
  4. 4. What does F3 do after typing the name of a building block?

    Typing the AutoText name and pressing F3 inserts the stored content.

Summary

  • Quick Parts and Building Blocks store reusable content; F3 inserts by name.
  • Fields display live data; Ctrl+F9, F9 and Alt+F9 are the key shortcuts.
  • Switches such as \@ and \# control date and number formats.
  • Content controls build fillable forms; Design Mode edits placeholders.
  • Save forms as templates and restrict editing to filling in forms.

Next: Advanced Find and Replace