Change Tracking

Stephen Gross 1 Reputation point
2022-02-22T23:15:31.297+00:00

Given a .doc and .docx file, can I determine if change tracking was turned on when the documents were saved without loading the file in Word?

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
923 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Doug Robbins - MVP 716 Reputation points
    2022-03-06T11:14:22.793+00:00

    If Track Changes was active when the document was saved, the settings.xml file will contain

    <w:trackRevisions/>

    While you can probably use VBA to unzip the file and access the settings.xml file and search for that entry, it would be a lot easier to just use vba to open the document and determine if Document.TrackRevisions is True or False

    See https://learn.microsoft.com/en-us/office/vba/api/word.document.trackrevisions?f1url=%3FappId%3DDev11IDEF1%26l%3Den-US%26k%3Dk(vbawd10.chm158007610);k(TargetFrameworkMoniker-Office.Version%3Dv16)%26rd%3Dtrue

    2 people found this answer helpful.
    0 comments No comments

  2. Emi Zhang-MSFT 24,986 Reputation points Microsoft Vendor
    2022-02-23T02:43:52.243+00:00

    Hi @Stephen Gross ,
    You don't want to open the source document, is my understanding right?
    In my opinion, you can copy the document and open the copy file to check if the feature is enabled.
    If my understanding is incorrect, pleae provide more information about your problem. I'm glad to help you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Stefan Blom 2,266 Reputation points MVP
    2022-02-23T19:29:21.85+00:00

    At a guess, you should be able to look at the underling XML and find out if tracking is enabled.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.