Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Inserting Custom Properties with Fields.

Inserting Custom Properties with Fields

Written by Allen Wyatt (last updated June 15, 2019)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


6

Word maintains a number of different properties related to your documents, as a whole. You can see what these properties are by displaying the Properties dialog box. How you display that dialog box depends on the version of Word you are using:

  • If you are using Word 2010 or a later version, click the File tab of the ribbon and make sure that Info is selected at the left side of the screen. Then click the Properties drop-down list (upper-right side of the screen) and choose Advanced Properties.
  • If you are using Word 2007, click the Office button, click Prepare, then Properties. Word displays the Document Information Panel at the top of your document, just below the ribbon. Use the Document Properties drop-down list (top-left corner of the Document Information Panel) to choose Advanced Properties.

The Properties dialog box is full of information maintained by Word. You can even use the Custom tab in the dialog box to create your own custom properties for your documents.

Inserting the values of properties into a document is done using different fields. Pre-defined properties have their own corresponding fields. For instance, if you want to insert a document's creation date into your text, you do so by using the CreateDate field.

What you may not know is how to insert values assigned to custom properties—the properties you create—into your document. In order to do this, let's assume you have created a custom property named MyProp. To insert the value of this property in your document, follow these steps:

  1. Position the insertion point where you want to insert the value of the custom property.
  2. Make sure the Insert tab of the ribbon is displayed.
  3. Click the Quick Parts tool in the Text group. You'll see a list of options.
  4. Choose Field. Word displays the Field dialog box. (See Figure 1.)
  5. Figure 1. The Field dialog box.

  6. In the list of Categories, choose Document Information.
  7. In the list of Field Names, choose DocProperty.
  8. In the Property list, choose the custom property you created (MyProp).
  9. Click on OK. Word inserts the value of MyProp in your document.

When you insert the field, it represents the value in the custom property at the time the field is inserted. If you later change the custom property, the field will not be immediately updated to reflect the change. You'll need, instead, to do something to update the field. (There are several ways you can do this; one quick way is to select the entire document by pressing Ctrl+A and then immediately pressing F9.)

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (7794) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Inserting Custom Properties with Fields.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Starting a Discussion

Tips for getting your Discussion started.

Discover More

Canceling an Edit

When editing a cell, you may want to cancel the edit at some point. There are two ways to do this, both described in this ...

Discover More

Placeholders for Stamps

Got a reply envelope you want to create? Why not put a placeholder for the stamp on the envelope? It's easy to do if you ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Extracting INCLUDEPICTURE File Names

If you use the INCLUDEPICTURE field to add images to your document, you may love the macro in this tip. It allows you to ...

Discover More

Updating Fields Automatically

You can place dynamic fields into many parts of your document. If your document contains a lot of fields, you might ...

Discover More

Differences between SEQ and LISTNUM Fields

Word provides several different fields you can use for custom numbering in a document. Two of the most commonly used are ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 5?

2019-06-29 15:35:39

Rebekah

Hello, I'm new to creating forms in word. I've tried several different field boxes, formulas, document property etc to create a fillable form that is 13 pages long and has redundant boxes in it. I would like the repeating fields (there will be several) to repeat automatically. The closest I came to that was the list of options under document properties, but it links all fields of that category (ie. Abstract, title, etc). I will have several different boxes repeating throughout. Some of them are the titles of a section (ie. Grading categories or subject titles should be changeable). I'm also having trouble with large areas for several lines of text to be allowed... Any specific advice? Thanks! (see Figure 1 below)

Figure 1. 


2019-06-18 23:25:38

Christopher L. Simpson

In the version of MS-Word on my PC (MS-Office 2007 running on Windows 7) I would not check "Preserve formatting during updates" to put the MERGEFORMAT-switch into the Field-Code. In my version of MS-Word I can put the Field-Code into the document, and format different letters of the displaying Value of it as bold or italic, etc., and if I then press {F9} to update that Field the font-formatting I have done disappears whether I have the MERGEFORMAT switch in there or not.

The way MERGEFORMAT switches are or are not material (and so may as well be omitted if not material) varies from version to version of MS-Word. For instance, it is material in my version to some kinds of REF fields and to formatting the wings differently from the digits of the page-number in a Page Field where the page-number format includes the wings. (Almost everyone, however, does that by typing dashes or hyphens before and after the Field, not choosing the option to create them as PART OF the Field.) The MERGEFORMAT switch won't cause formatting to stick, in my version, on a TOC Field. Other kinds of font-formatting will stick if the entire Field is font-formatted and the MERGEFORMAT switch is missing, so I can omit it from them too. Before I leave the document littered with MERGEFORMAT switches that don't do anything except make the view with {alt}{f9} turned on very difficult to read, I would check and see if MERGEFORMAT-switches really have a material effect in that type of Field in that version of MS-Word.


2019-06-18 23:11:22

Christopher L. Simpson

If Eva Balassa's tip for updating (by pretending that you'd like to Print) Field-Codes that are in Headers and Footers is not working for you, it's because you have the setting to update Fields when Printing turned off. xtopher.simpson@gmail.com


2019-06-18 23:07:32

Christopher L. Simpson

I do not believe that this creates a Custom Document-Property. As far as I know, you cannot create a Custom Document-Property with Fields. I do it with VBasic.

This Field refers to the VALUE of a Custom Document-Property that already exists. Suppose that your document already has a Custom Document-Property whose name is "TTask" and whose Value is "Send emails to Managers.".

If you have a sentence that, with {alt}{f9} turned on so that Field-Codes' programming rather than their results is shown, looks like this:

The next job, "{ DOCPROPERTY TTask }" , will be Jennifer's,

then with {alt}{f9} turned off it will say

The next job, "Send emails to Managers", will be Jennifer's.

but the Field can only be used to REFER to this Custom Document-Property's Value because the Custom Document-Property already exists. The Field does not CREATE (i.e. insert) a Custom Document-Property into the document's set of Custom Document-Properties.


2019-06-18 23:06:29

Christopher L. Simpson

I do not believe that this creates a Custom Document-Property. As far as I know, you cannot create a Custom Document-Property with Fields. I do it with VBasic.

This Field refers to the VALUE of a Custom Document-Property that already exists. Suppose that your document already has a Custom Document-Property whose name is "TTask" and whose Value is "Send emails to Managers.".

If you have a sentence that, with {alt}{f9} turned on so that Field-Codes' programming rather than their results is shown, looks like this:

The next job, "{ DOCPROPERTY TTask }" , will be Jennifer's,

then with {alt}{f9} turned off it will say

The next job, "Send emails to Managers", will be Jennifer's.

but the Field can only be used to REFER to this Custom Document-Property's Value because the Custom Document-Property already exists. The Field does not CREATE (i.e. insert) a Custom Document-Property into the document's set of Custom Document-Properties.


2019-06-17 09:00:31

Eva Balassa

In this tip: Inserting Custom Properties with Fields, you should also mention this in the last paragraph:
There's an additional step necessary to update a DocProperty field that is in the document's footer or header.
You need to select the print option as if you are going to print the document. Doing this will update the headers and footers. You don't need to actually send the document to the printer, just force Word to prepare it for printing.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.