Indicating the Date Changes were Last Made

by Allen Wyatt
(last updated March 14, 2020)

3

In the header of his document Tony includes a date field. He wonders if there is a way to have the date field update only if a change has been made to the details of the document. He is using the field to reflect the version of the document.

Before discussing how you can approach this need, there is a philosophical question that one needs to consider: When is a change actually made? When the edit is completed or when the document you edited is actually saved? The philosophical answer, of course, is that the change isn't really "made" until such time as you save your document. You can make changes to your document for hours on end, but if you never save the document, those changes are ephemeral; they go away when you lose power to your computer.

Recognizing this, Microsoft has never had a field that indicates the date when changes were last made. Instead, they included a SaveDate field which indicates the date the document was last saved. Here's how you can add this field to your document:

  1. Position the insertion point where you want the date to appear.
  2. Display the Insert tab of the ribbon.
  3. Click Quick Parts (in the Text group) and then click Fields. Word displays the Field dialog box.
  4. Choose Date and Time from the Categories drop-down list at the left of the dialog box. (See Figure 1.)
  5. Figure 1. The Field dialog box.

  6. Select SaveDate from the field list at the left side of the dialog box.
  7. Click on Options to select a date format, if desired.
  8. Click on OK to insert the field.

You should note that if you save your document as you are editing, you won't see the SaveDate field update right away. It exhibits the same behavior as any other field in your document and is only updated when the field, itself, is updated. (This behavior has been covered in other WordTips.)

There is also another way you could insert the last date your document was saved, using a document property called DocModified. Despite its name, it displays the same information as the SaveDate field. You can insert this custom property in your document in much the same way as you inserted the SaveDate field:

  1. Position the insertion point where you want the date to appear.
  2. Display the Insert tab of the ribbon.
  3. Click Quick Parts (in the Text group) and then click Fields. Word displays the Field dialog box.
  4. In the list of Categories, choose Document Information.
  5. In the list of Field Names, choose DocProperty.
  6. In the Property list, choose the DocModified property.
  7. Click on OK. Word inserts the field into your document.

Whenever you work with fields as described in this tip, there are a couple of things you need to keep in mind. The first I already mentioned—the fact that fields are not updated automatically; they need to be specifically updated. The other thing is that if you do update fields (like if you print the document, which automatically updates the fields), Word thinks that just because the fields have been updated that the document itself has been updated. Thus, when you close the document you will be asked if you want to save your changes. If you do save the document then, of course, the next time you open the document the SaveDate field will reflect the new date on which you saved the document, not the date you made real changes to the document. (Sorry, contra Microsoft, I don't consider updates to fields to be "real changes.") The bottom line is that you should make sure you only save your document if you really make changes, not just if the fields were updated.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13746) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365.

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

Excel 2007 Serious Sorting (Table of Contents)

Sorting data means that you organize it in whatever order you desire. Excel's sorting feature can be used in a variety of ...

Discover More

Executing a Macro After Printing is Done

You can modify Excel's BeforePrint event handler to change how the printing process occurs. Unfortunately, though, Excel ...

Discover More

Word Tracks Changes to Changes

When you have Track Changes turned on for a document, Word remembers which editor made which changes. If this behavior ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Assigning a Macro to a Button in Your Text

One way you can access macros is through the use of a button, added directly into the text of your document. This is done ...

Discover More

Limiting Directories in the FILENAME Field

When you use the FILENAME field in a document, it can include the full path name that leads to your file. This might be ...

Discover More

Changing a Field Parameter

Fields are a powerful way to add dynamic content to your documents. Some fields rely on the use of parameters to control ...

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 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 7 + 4?

2020-04-07 14:11:44

Anita

I don't have the DocModified property either. I'm using Word 365, version 1902, build 11328.20554 (click-to-run) (semi-annual channel).


2020-03-16 18:40:48

Allen

That's interesting, Tomek. If I follow the second set of steps on my Office 365 system, I can see the DocModified property right after I complete step 5.

This is on a system that doesn't use SharePoint.

-Allen


2020-03-16 16:24:33

Tomek Dluzniewski

Hi Allen,
In my version of Word (365/2016) there is no property DocModified. I guess it must be your custom property or may be SharePoint property, if you use it.
Regards,
Tomek


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.