VBA & Macro Problems

How to Track the Start Time of a Microsoft Word Editing Session

Kushani NimanthikaKushani Nimanthika Nov 4, 2026 869 views

Question details

The user wants to track the exact start time and calculate the elapsed duration of a Microsoft Word document editing session.

How to Track the Start Time of a Microsoft Word Editing Session
Product
Microsoft Word
Device & OS
not provided
Scenario
Recording the start time of a session for a new or existing document to measure productivity and track elapsed editing time.
Observed behavior
Microsoft Word lacks a built-in real-time session clock for the current session, requiring users to rely on custom VBA macros utilizing AutoNew and AutoOpen procedures.
Before you start

Ensure that your organization's security policies allow the execution of VBA macros in Microsoft Word, and confirm that the Developer tab is enabled in your Word ribbon.

Solution 1Recommended

Use a VBA Macro to Track Session Start Time

Implement a VBA script using AutoNew and AutoOpen to capture the session start time in a document variable and calculate the elapsed time.

Because Word does not feature a native real-time session clock, utilizing VBA macros within your Normal.dotm template is the most effective workaround. This script uses document variables to log the time you open or create a file and calculate the difference when prompted.

1
Open the VBA Editor

Launch Microsoft Word and press ALT + F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.

2
Insert a New Module

In the Project Explorer pane on the left, right-click on 'Normal', select 'Insert', and then click 'Module'.

3
Add AutoOpen and AutoNew Macros

Paste the following logic into the module: Create an 'AutoOpen' subroutine for existing documents and an 'AutoNew' subroutine for new documents. Within both, assign the current time using the 'Now' function to a Document Variable (e.g., ActiveDocument.Variables("SessionStartTime").Value = Now).

4
Create a Duration Calculator

Create a third subroutine named 'CheckStartTime'. In this macro, retrieve the saved 'SessionStartTime' variable and use the 'DateDiff' function to calculate the minutes elapsed between the start time and the current time.

5
Run the Time Checker

Return to your Word document. Whenever you want to check your session time, press ALT + F8, select 'CheckStartTime' from the Macro list, and click Run. A message box will display your start time and the elapsed duration.

Corporate Security Restrictions: If you are on a strict corporate network, VBA macros may be disabled by your system administrator. You will need to contact your IT department to allow macro execution or seek alternative time-tracking software.
Free Microsoft Office alternative

Looking for a simpler document editing experience? Try WPS Office

While Microsoft Word requires complex VBA macros to track editing time—which can be blocked by workplace security—WPS Office offers a streamlined, highly intuitive environment. It provides excellent compatibility with Microsoft Office formats in a highly efficient, lightweight package.

  1. 1. Download and Install: Visit the official WPS website to download and install WPS Office for free on your device.
  2. 2. Open Your Document: Launch WPS Writer and open your existing .docx files directly without any formatting loss.
  3. 3. Edit Seamlessly: Continue your work utilizing a familiar interface and comprehensive editing tools.
Fully compatible with Microsoft Word (.docx), Excel, and PowerPoint formatsLightweight design ensures fast loading and smooth editing performanceIntuitive, tabbed interface requires no steep learning curveFree to download and use for all your essential document editing needs
QA img-9

Frequently Asked Questions

Does Word have a built-in timer to show elapsed editing time?

No, Microsoft Word does not display a live session timer on the screen. It tracks a cumulative 'Total Editing Time' in the document properties, but this represents the total historical time the document has been open across all sessions, not a live clock for your current editing session.

Where do I find the total editing time in Word without using macros?

You can view the cumulative editing time by going to File > Info. Under the Properties section on the right side of the screen, look for 'Total Editing Time'. Note that this counts the total minutes the file has been open and actively edited since its creation.

Why are my VBA macros blocked from running?

Macros are often disabled by default due to security risks. In a corporate environment, strict IT policies may prevent you from enabling them. You can check your personal settings by navigating to File > Options > Trust Center > Trust Center Settings > Macro Settings.