3 Quick Ways to Insert the Created or Last Modified Date into Your Word Document

In this post, we will pay attention to show you 3 quick ways to insert the created or last modified date into your Word document.

Every time we create a document, it contains a lot of information, such as the created date and last modified date. These details keep us a good track of how we have been editing on the document. So today, we will show you methods to enable you to insert the created or last modified date into document.Insert the Created or Last Modified Date into Your Word Document

Note:

Before all, once you finishing drafting document, save it first. So you can have the most updated version. Then you can insert relevant dates into document with following instructions.

Method 1: Insert Date Manually

In Word, you can see the created and last modified dates if you switch to the background. However, you can’t copy that information directly. Instead you shall follow these steps.

  1. Firstly, in Word, click “File” tab.
  2. Next click “Info” option and on the rightest column, click “Properties”.
  3. Then on drop-down menu, select “Advanced Properties”.Click "File"->Click "Info"->Click "Properties"->Select "Advanced Properties"
  4. And in the window open, click “General” tab.
  5. Now you can copy and paste relevant information into document.Click "General" Tab->Copy Relevant Information

Method 2: Insert Field

  1. First off, place insertion pointer properly and click “Insert” tab.
  2. Then click “Quick Parts” and choose “Field”.Click "Insert"->Click "Quick Parts"->Click "Field"
  3. In “Field” box, choose “Date and Time” for category.
  4. Next, to insert created date, select “CreateDate” field name. And to insert last modified date, select “SaveDate” instead.
  5. Then choose a date format if necessary.
  6. Lastly, click “OK”. You will have the date inserted in the selection.Choose "Date and Time"->Select "CreateDate" or "SaveDate"->Choose a Format->Click "OK"

Method 3: Run VBA Codes to Insert both Created and Last Modified Date

  1. First and foremost, place cursor at the position where dates go.
  2. Then press “Alt+ F11” to open VBA editor.
  3. In “Project” panel, click “Normal”.
  4. Next click “Insert” tab.
  5. Choose “Module”.Click "Normal"->Click "Insert"->Click "Module"
  6. Double click to open the module.
  7. Paste following codes there:
Function GetDocDates(strDocPath) As String
  Dim objFileSystem As Object
  Dim objFile As Object
  Dim strDates As String
 
  Set objFileSystem = CreateObject("Scripting.FileSystemObject")
  Set objFile = objFileSystem.GetFile(strDocPath)

  strDates = "Created Date: " & objFile.DateCreated & vbNewLine & _
             "Last Modified Date: " & objFile.DateLastModified
  GetDocDates = strDates
 
  Set objFile = Nothing
  Set objFileSystem = Nothing
End Function

' Call Function GetDocDates
Sub InsertDocDates()
  ' Insert dates at selection point.
  Selection.InsertAfter GetDocDates(ActiveDocument.FullName)
End Sub
  1. Put cursor inside “InsertDocDates” macro and click “Run” button to run it.Paste Codes->Click "Run"

You will get dates inserted into document like this:Run Macro to Insert Dates

Deal with Data Loss Issue

Data loss has become quite a topic today. All kinds of information now goes digital. This means we have to be fully prepared for data disaster in advance. And Word document corruption is a problem we can easily run into. Thus, we suggest you getting a Word repair tool in hand.

Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair xls and pdf repair software products. For more information visit www.datanumen.com

Comments are closed.