Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. 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: Creating Custom Document Properties.

Creating Custom Document Properties

by Allen Wyatt
(last updated April 20, 2013)

6

Besides your actual document, Word also maintains quite a bit of statistical and overview information about your document. You can view a portion of this information by choosing the Properties option from the File menu. Word then displays the Properties dialog box for your document, and you can use the different tabs to view the information maintained.

In addition to the standard properties maintained by Word, you can create your own custom document properties. These can then be used within your document (using the DOCPROPERTY field) or within macros. To create a custom document property, start by displaying the Properties dialog box for the document. How you do this depends on the version of Word you are using. If you are using Word 2010 or Word 2013, follow these steps:

  1. Click the File tab of the ribbon and make sure that Info is selected at the left side of the screen.
  2. Click the Properties drop-down list and choose Advanced Properties. Word displays the Properties dialog box for the document.

If you are using Word 2007, follow these steps:

  1. Click the Office button and then click Prepare and, finally, Properties. Word displays the Document Information Panel at the top of your document, just below the ribbon.
  2. Use the Document Properties drop-down list (top-left corner of the Document Information Panel) to choose Advanced Properties. Word displays the Properties dialog box for the document.

Regardless of which version of Word you are using, make sure the Custom tab is selected. (See Figure 1.)

Figure 1. The Custom tab of the Properties dialog box.

From this point you can follow these steps:

  1. In the Name box, type the name you want used for your new document property.
  2. Using the Type drop-down list, specify the type that best describes what you will store in this document property.
  3. In the Value box, type the value you want assigned to the property.
  4. Click on the Add button. Your new property appears at the bottom of the dialog box, in the Properties list.
  5. Click on OK or Cancel to dismiss the Properties dialog box.

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

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

Messed-up Typing

It is not uncommon for newcomers to Word to overwrite their existing document text as they are editing. There is a reason for ...

Discover More

Adding a Drop Shadow to a Text Box

Drop shadows add a nice touch to text boxes, making it seem like they are hovering above the page. Here's the simple steps ...

Discover More

Keeping Centered Headers and Footers Centered

Headers and footers provide a nice final touch for your printed documents. If you want to expertly align text in those ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Controlling Document Properties

Word keeps track of quite a bit of document-related information that it refers to as "properties." Here's how to control ...

Discover More

Blocking the First Sentence from File Info

When you save a file, the information from the start of the file is saved in the properties for the document, and can be seen ...

Discover More

Unable to Edit Document with Embedded Fonts

What are you to do if you embed fonts in a document and then someone else cannot make changes to that document? Chances 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}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. 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 three more than 5?

2017-02-24 13:45:39

Keyvan HATEFI

Dear Allen,

A)
For a MS-Word or Office document, in "Document Properties" dialog box .... then "Custom" Tab,
is there a simple solution to change the order of custom properties already typed-in, or to insert a new property between two already existing properties; without being obliged:

01) to erase all the properties below the point of insertion,
02) to insert the new property,
03) and to typed-in one by one all erased properties?

or

B)
Is there any application or tool to let us to:

01) extract the "Custom Properties" list of an MS-Word document (or any office document, i.g. Excel, PowerPoint, etc, ...),
02) to edit and change the properties (name and value) and the order of typing-in (sorting by different ways),
03) and then erase the List of the "Custom" Tab in the "Document Properties" dialog of the Word document,
04) and import-back in word document the new list obtained by the tool and replace the old list?

Hope you could provide me with some Tips ! :) :) :)

Keyvan
Switzerland


2017-01-27 07:12:41

John

In reply to question about adding a "Custom Property" Document Number with a "Value" 007 using VB.

Use the following and change the variables where required:

Sub InsertCP()
Dim oCP As DocumentProperty
With ActiveDocument
On Error Resume Next
Set oCP = .CustomDocumentProperties("Document Number")
If Not Err.Number = 0 Then
Set oCP = .CustomDocumentProperties.Add(Name:="Document Number", LinkToContent:=False, Value:="007", Type:=msoPropertyTypeString)
End If
On Error GoTo 0
Debug.Print oCP.Value
End With
End Sub


2017-01-27 07:04:00

John

"After adding into the 'Custom' tab it doesn't appear anywhere for me to add in the document. I am using Word 2010."

Open the MS Word 2010 document that already has the "Custom Properties" and place your cursor where you want to insert the value.

On the ribbon bar, select "Insert","Quick Parts", "Field".

From the "Categories" drop down select "DocProperty" and select the value you want to insert and click OK.


2016-06-23 16:14:58

Doesn\'t Work

After adding into the 'Custom' tab it doesn't appear anywhere for me to add in the document. I am using Word 2010.


2016-05-02 23:47:58

Buggy Code

Sorry,

The dialogs did as described, however the property does not appear anywhere. Nor does it seem to be able to be used within the document.


2014-08-02 12:32:16

ıɾɐןɐq

Can any of these custom docproperty be given a value thru vba code?

Say, i want to assign the number 007 to Document number. By alt+f+i, then advanced properties & custom, i can enter it manually.

How to automate the above?


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.

Newest Tips
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.