Changing the Document Inspector's Comment Name

Written by Allen Wyatt (last updated August 4, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


3

In order to prepare a document for sharing with others, Dola often uses the Document Inspector to delete personal information from a file. This causes Word to change the name associated with comments to the generic name "Author." She wonders if there is a way to make the Document Inspector change it to something else, such as "Editor."

There is no easy way to do this; we could not find any setting within Word that makes this happen. That being said, there is a much more difficult way to do this (provided you are working with a DOCX file) which may be worth doing if you don't have to do it often and if it is critical that it be done. With that in mind, let's take a long and winding road...

I'm going to start by creating a testing document. I put some boilerplate text in the document, and I added a few comments to it. You'll note that the comments include information that show me as their author. (See Figure 1.)

Figure 1. My testing document with some comments visible.

There may be a difference in how the comments appear in your document depending on which version of Word you are using. The image above shows a document created with my Word 2016 version and the image below shows a document created with my Word in Office 365 version. (See Figure 2.)

Figure 2. My testing document with some comments visible in Word in Office 365.

After saving the document, I'm ready to start by using the Document Inspector. If you're using Word 2007, display the Document Inspector by clicking the Office button, Prepare, and then Inspect Document. If you're using Word 2010 or a later version, display the File tab of the ribbon, click on Check for Issues, and then select Inspect Document from the drop-down menu. Word displays the Document Inspector dialog box. (See Figure 3.)

Figure 3. The Document Inspector.

I typically leave all the check boxes selected, then click the Inspect button. In the case of my testing document, the Document Inspector noted that there were some things that could be removed to make the document more anonymous. (See Figure 4.)

Figure 4. The Document Inspector's report.

Normally, what I do is to click Remove All button for the second option, Document Properties and Personal Information. (This is apparently what Dola does, as well.) After doing so, I click Close to dismiss the Document Inspector, return to the document, save it, and then reopen the document. Upon doing so, the authorship of the comments is "genericized," meaning that my name is expunged and the generic "Author" replaces my name. (See Figure 5.)

Figure 5. My testing document after a pass through the Document Inspector.

It is this generic name that Dola wants to change. Word provides no mechanism to make such a change. There is a way around this, however.

My first step is to get out of Word entirely. In the case of my testing document, I have it on my desktop, and I want to change its name. Currently it is Testing2.docx, and I'm going to change it to Testing2.zip. The only thing I'm doing is changing the filename extension. (If you cannot see filename extensions on your system, you might want to display them.)

Once changed, all I then need to do is double-click on the renamed document, and Windows opens the document so I can see what is within it. (See Figure 6.)

Figure 6. Opening the Zip file that used to be a Word document.

Important side note: Office files these days (including Word documents) are nothing but Zip files by a different name. The Zip files contain lots of XML files and other proprietary information that defines how the document should be put together.

You want to open the word folder, and you should see within that a file named comments.xml. This file contains the XML coding necessary to display all the comments in the document. (See Figure 7.)

Figure 7. The contents of the Word folder.

What I want to do is to edit the comments.xml file. I cannot do it within the Zip file, so I need to drag it from the folder to my desktop. Once copied to the desktop, I just need to right-click on the file and choose Open With | Notepad. This opens the comments.xml file in Notepad. (See Figure 8.)

Figure 8. The comments.xml file open in Notepad.

Your comments.xml file will, of course, look different than mine. The idea, though, is that you want to search for two recurring XML entries in the file:

w:author="Author"
w:initials="A"

The first of these is the displayed author's name for the comment and the second is the initials for the author. You want to use Notepad's search capabilities to change all of these to whatever you want. For instance, you might do a search for w:author="Author" and replace it with w:author="Editor", then do a search for w:initials="A" and replace it with w:initials="Ed". Make sure you only change the text between the quote marks; it is important to leave everything else as it is.

When you are done, save the comments.xml file and close Notepad. You should still have the Zip file open to the Comments folder, so you want to drag comments.xml back to that folder. You are asked if you want to replace the original comments.xml file. (See Figure 9.)

Figure 9. Being asked if you want to replace the file.

The correct answer is that you want to copy and replace the original comments.xml. When this is done, you can close the File Explorer window that displays your Zip file. Now, you just need to rename the Zip file back to a DOCX file. In my case, this means renaming Testing2.zip as Testing2.docx.

With this done, I can then open the document in Word, and you'll note that the previous comment author's name (Author) has been changed to the desired name (Editor.) (See Figure 10.)

Figure 10. The changed comment author names.

Lots of work? You bet. But, again, it may be something you deem necessary for how you are sharing the document with others.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13562) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 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

Indexing Based on a Range of Letters

Word provides many options for creating indexes. One option allows you to specify that the index contain only entries ...

Discover More

Controlling Where a Full-page Border is Printed

When you add full-page borders to your document, you may be bothered to find out that one or more sides of the border ...

Discover More

Understanding Page Border Art

Add some artwork around the border of your printed page, and you may not know where that artwork comes from. You may also ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (ribbon)

Word Count for a Section

Dynamic word counts for your entire document are easy to get when you use using fields. There is no built-in method to ...

Discover More

Comparing Document Versions

Do you need to compare two versions of a document to each other? Word provides a tool that can make this easy, as ...

Discover More

Word Counts for a Group of Documents

Getting a word count for a single document is easy. Getting an aggregate word count for a large number of documents can ...

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}] (all 7 characters, in the sequence shown) 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 2 + 2?

2018-09-23 04:20:23

Jacques Raubenheimer

You could also just use my Word uTIlities to do this.
http://insight.trueinsight.za.com/word/word-utilities/


2018-09-23 00:22:31

Catherine

Very, very cool! Not only is it a useful tip, but it teaches us a number of things about how Word works. Thanks, Alan!


2018-09-22 13:55:12

Ron S

The only suggestion I have is rather than renaming by replacing the .DOCX to .ZIP, do it by extending, adding the extension ie .DOCX.ZIP

Not a big deal if you are only dealing with one file, but if you are working with many or keeping intermediate, backup copies then adding makes it easier to rename back to the original file type. No guessing required.


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.

Videos
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.