Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Removing All File Properties.

Removing All File Properties

by Allen Wyatt
(last updated July 20, 2015)

2

Word allows you to maintain a fair number of properties associated with a document. These properties vary from document to document. Some of them are set automatically by Word, and others can be set manually by you.

Using a macro, you can clear all properties. The following macro tries to access all the built-in document properties, resetting them so that they contain nothing. If a non-writable document property is accessed (for example, the time the document was last printed), then an error is generated and the macro resumes on the very next property.

Sub CleanProp()
    Dim oProp As DocumentProperty
    On Error Resume Next
    For Each oProp In ActiveDocument.BuiltInDocumentProperties
        oProp.Value = ""
    Next oProp
End Sub

There are also commercial metadata cleaners available on the market. These clean not only the information stored in the document properties, but also other identifying data that you might not want distributed with a document. Examples of these types of programs are Metadata Assistant (Payne Consulting Group) and Workshare Protect (WorkShare). You can use your favorite search engine to search for information on these and other cleaners.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11737) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Removing All File Properties.

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

Changing Strikethrough Lines

Want to change the way a strikethrough line appears? It's not as easy as you think, as you find out in this tip.

Discover More

Adding Caption Labels

When using the captioning capabilities of Word, you aren't limited to the three default caption labels provided in the ...

Discover More

Using Go To with a Percentage

Need to jump a certain percentage of the way through a document? You can do it using the familiar Go To tab of the Find and ...

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)

Using Seek In a Macro

When processing non-document text files in a macro, you have a wide range of commands available for your use. One of those is ...

Discover More

Determining If a File Exists

Your macro may need to know if a particular file exists. This is easy to figure out using the Dir command, and even easier if ...

Discover More

Embedding TrueType Fonts by Default

If you use TrueType fonts frequently, you might want to set Word to embed those fonts by default. Here's how to do it.

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 6 - 0?

2012-05-21 03:41:07

Andrew Evans

I gald someone else has pointed out the free tool from Microsoft, I have used the 2003 tool a lot and it works well. i would have thought giving details of the free facilities that Microsoft provide for use would be the first port of call for a MVP rather than commercial - there may be some commercial tools that go further than the freebie's but if the freebie's work than that must be the way to go.


2012-05-19 06:22:44

Bruce Manford

You do not mention the built-in Word tool, the Document Inpsector, whihc is much more flexible than the macro here. See: http://office.microsoft.com/en-us/word-help/remove-hidden-data-and-personal-information-by-inspecting-documents-HA010354329.aspx for how to use it. This applies both to Word 2007 and Word 2010. For Word 2003 there is a separate (free) tool available from Microsoft that does much the same thng.


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.