
Tips.Net > WordTips Home > Files > Removing All File Properties
Summary: Want to get rid of any properties you’ve created for a document? You can do so by using the short macro described in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)
Word allows you to maintain a fair number of properties associated with a document. You can see these properties by choosing Properties from the File menu. 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 the boxes on the Summary tab of the Properties dialog box. 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 MetaWall (WorkShare). You can use your favorite search engine to search for information on these and other cleaners.
Tip #1377 applies to Microsoft Word versions: 97 2000 2002 2003 2007
More Power! Expand your skills and make Word really sing! It's all possible with macros. The best resource anywhere for macros is WordTips: The Macros. Check it out today!
Have thousands of WordTips at your fingertips, on your own system. Answer your own questions or help support others. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips