How to minimize metadata in Word 2002 (290945)



The information in this article applies to:

  • Microsoft Word 2002

This article was previously published under Q290945
For a Microsoft Word 97 version of this article, see 223790.

For a Microsoft Word 2000 version of this article, see 237361.

For a Microsoft Word 2003 version of this article, see 825576.
Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


\

IN THIS TASK

SUMMARY

This article describes various methods that you can use to minimize the metadata in your Microsoft Word documents.

Whenever you create, open, or save a document in Word 2002, the document may contain content that you may not want to share with others when you distribute the document electronically. This information is known as metadata. Metadata is used for a variety of purposes to enhance the editing, viewing, filing, and retrieval of Microsoft Office documents.

Some metadata is easily accessible through the Word user interface. Other metadata is only accessible through extraordinary means, such as by opening a document in a low-level binary file editor. The following are some examples of metadata that may be stored in your documents:
  • Your name
  • Your initials
  • Your company or organization name
  • The name of your computer
  • The name of the network server or hard disk where you saved the document
  • Other file properties and summary information
  • Non-visible portions of embedded OLE objects
  • The names of previous document authors
  • Document revisions
  • Document versions
  • Template information
  • Hidden text
  • Comments
Metadata is created in a variety of ways in Word documents. As a result, there is no single method to remove all such content from your documents. The following sections describe areas where metadata may be saved in Word documents.

This article describes various methods that you can use to minimize the metadata in your Word documents.


DISCLAIMER

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: For additional information about how to use the sample code in this article, click the following article number to view the article in the Microsoft Knowledge Base:

290140 OFFXP: How to Run Sample Code from Knowledge Base Articles

back to the top

How to Automatically Remove Personal Information When You Save

You can now automatically remove personal information from a Word document when you save the document. To turn this option on, follow these steps:
  1. On the Tools menu, click Options.
  2. On the Security tab, click to select the Remove personal information from this file on save check box under Privacy options, and then click OK.
Note This is the preferred method of removing personal information when you save a Word 2002 document.

back to the top

How to Manually Remove Your User Name from Your Documents

To view or change your user name, follow these steps:
  1. On the Tools menu, click Options, and then click the User Information tab.

    The following text boxes appear:

    Name
    Initials
    Mailing Address
  2. If you do not want any of this information to appear in your documents, enter non-identifying strings or spaces in the appropriate text boxes, and then click OK to accept the changes.
Note Any new documents that you create will contain this information, instead of the default values that are entered when you install Office. However, existing documents may already contain this information.

back to the top

How to Manually Remove Personal Summary Information

When you create or save a document in Word, summary information may be saved in the document. There are several methods that you can use to access this information:
  • Open the document. On the File menu, click Properties.

    The Summary, Statistics, Contents, and Custom tabs may all contain various properties such as your name, your manager's name, and your company name.
  • In Microsoft Windows Explorer, right-click the document, and then click Properties.

    The tabs in the Properties dialog box may contain information.
  • You can use a Microsoft Visual Basic for Applications (VBA) macro or other program code to read the properties shown in the Properties dialog box.
To clear summary information from an existing document or template, follow these steps:
  1. Open the document or template.
  2. On the File menu, click Properties.
  3. On the Summary tab, click to clear the Author, Manager, Company, and any other text boxes that you do not want to distribute.
  4. On the Custom tab, delete any properties that contain information that you do not want to distribute.
  5. Click OK.

    On the File menu, click Save, and then click Close.
After you complete these steps, the document will not contain summary properties.

back to the top

How to Manually Remove Personal Summary Information When Connected to a Network

If you are logged on to a network, your network user name may appear in the Author box on the Summary tab and in the Last saved by field on the Statistics tab when you save a document. This issue may occur even if you have removed all other personal information from your computer.

To remove summary information from a document when you are on a network, follow these steps:
  1. If the document is stored on a network server, copy it to your local hard disk.
  2. Start your computer, but do not log on to your network. When you see the network logon dialog box, click Cancel or press ESCAPE.

    Note If you cannot start Windows by pressing ESCAPE (for example, your computer is running Microsoft Windows NT), you cannot continue these steps.
  3. Open the document.
  4. On the File menu, click Properties.
  5. On the Summary tab, click to clear the Author, Manager, Company, and any other text boxes that contain information that you do not want to distribute.
  6. On the Custom tab, delete any properties that contain information that you do not want to distribute.
  7. Click OK.

    On theFile menu, click Save, and then click Close.
When you log on to the network, do not open the file. If you do, your network user name may be written in the file. However, you can use Windows Explorer to copy the file to either a network server or a floppy disk.

back to the top

How to Manually Remove Comments in Documents

Word offers the ability to add comments to documents. Typically, comments contain the name of the person who created them, so that you can tell who wrote them.

Comments typically appear as a highlighted section of text; you can right-click the comment, and then click Delete Comment.

Any new comments that you create will not contain your user name, because you have removed it from your Options dialog box, as described in the "How to Manually Remove Your User Name from Your Documents" section of this article.

back to the top

How to Manually Remove Headers and Footers from Documents

Headers and footers in documents may contain identifying information. To remove information from headers and footers, follow these steps:
  1. On the View menu, click Header and Footer.
  2. The header and footer appear at the top and bottom of each page in your document.

    Change them as you want.
  3. On the Header and Footer toolbar, click Close.
back to the top

How to Manually Remove Revision Marks

Documents can contain revision marks. Revision marks allow you to determine who makes specific changes to a document. When you accept or reject revision marks, the revised text is saved in the document, and the revision marks are removed.

To accept or reject revisions, follow these steps:
  1. On the Tools menu, point to Track Changes, and then click Accept or Reject Changes.
  2. In the Accept or Reject Changes dialog box, use the two Find buttons to locate specific revisions to individually accept or reject, or click Accept All or Reject All.
  3. When you are finished, click Close.
Note If you change the "Show" settings on the Reviewing toolbar, revisions are not removed. back to the top

How to Turn Off Fast Saves

The Fast Saves feature speeds up the process of saving a document by saving only the changes that are made to a document.

Because of the design of the Fast Saves feature, text that you delete from a document may remain in the document, even after you save the document. If you are concerned about deleted text remaining in your documents, follow these steps:
  1. On the Tools menu, click Options.
  2. Click the Save tab.
  3. Click to clear the Allow fast saves check box.

    Click OK.
For additional information about Fast Saves, click the following article numbers to view the articles in the Microsoft Knowledge Base:

290945 How to minimize metadata in Microsoft Word 2002

291181 WD2002: Frequently Asked Questions About "Allow Fast Saves"

back to the top

How to Search for and Remove Text That Is Formatted As Hidden

In Word documents, you can format text as hidden. Because hidden text can contain information that you may not want to distribute, you may want to unhide and remove it. To remove all the text in a document that is formatted as hidden, follow these steps:
  1. On the Tools menu, click Options, and then click the View tab.
  2. Click to select the Hidden text check box, and then click OK.
  3. On the Edit menu, click Replace.
  4. Click More to expand the dialog box.
  5. Click anywhere in the text box next to Find what.
  6. Click the Format button, and then click Font.

    Click to select the Hidden check box, and then click OK.
  7. Click Replace All.
All hidden text is removed from the document. To turn off the display of hidden text, follow these steps:
  1. On the Tools menu, click Options, and then click the View tab.
  2. Click to clear the Hidden text check box.

    Click OK.
back to the top

How to Remove Hyperlinks from Documents

Documents may contain hyperlinks to other documents or Web pages on an intranet or the Internet. Hyperlinks typically appear as blue underlined text strings.

To manually delete a single hyperlink from a document, right-click the hyperlink, point to Hyperlink, and then click Remove Hyperlink.

If you want to delete all the hyperlinks in a document, you can use a VBA macro to do this. The following sample VBA macro removes all the hyperlinks in a document.

Note In the following sample macro, only the link is removed. The text of the hyperlink remains in the document.

Important Before you use the following macro example, review the Disclaimer earlier in this article.
Sub RemoveHyperlinks()

   Dim oDoc As Document
   Dim oStory As Range
   Dim oHlink As Hyperlink

   For Each oStory In ActiveDocument.StoryRanges
      For Each oHlink In oStory.Hyperlinks
         oHlink.Delete
      Next
   Next



End Sub
				
To remove all traces of both the hyperlink and the text of the hyperlink from the document, you can use the following sample macro instead.
Sub RemoveAllHyperlinks()

   Dim oDoc As Document
   Dim oStory As Range
   Dim oHlink As Hyperlink

   For Each oStory In ActiveDocument.StoryRanges
      For Each oHlink In oStory.Hyperlinks
         oHlink.Range.Delete
      Next
   Next

End Sub
				
back to the top

How to Remove Styles from Documents

Documents may include styles that contain metadata. You can remove these styles or rename them. To do this, follow these steps:
  1. Open the document that contains the styles.
  2. On the Format menu, click Style.
  3. Select the style that you want to delete or rename.

    Click Delete to delete the style, or click Modify to rename it.
back to the top

How to Remove Old File Versions from Documents

Word includes a file version feature that permits you to save multiple versions of the same document in the same file. You may want to delete older versions of the document before you share it with others.

To delete one or more versions of a document, follow these steps:
  1. On the File menu, click Versions.
  2. Select the version of the document that you want to delete.

    You can select more than one version by pressing CTRL while you select the versions.
  3. Click Delete.
  4. When you are finished deleting old versions of the document, click Save on the File menu.
back to the top

How to Remove Links from Field Codes

Linked images and other objects in Word documents may contain linking information, such as the path of the linked image or object. You can remove linking information from your document by editing the field codes.

To display field codes, follow these steps:
  1. On the Tools menu, click Options, and then click the View tab.
  2. Click to select the Field codes check box.

    Click OK.
After field codes are visible, you can check to see if any of them contain identifying information.

To remove the linking information from a linked image or other object, follow these steps:
  1. Select the linked image or object, or select the field code for the image or object if field codes are visible.
  2. Press CTRL+SHIFT+F9.
The image or object is now unlinked. When you unlink an image or object, you cannot edit it.

back to the top

How to Remove the Template Name and Location

All documents that are created in Word are based on a template. By default, this is the Normal.dot template file, located in the Templates folder. However, you can create a document that is based on a different template in another location. The path and name of this template are stored in the document's properties.

To view the template name and location, click Properties on the File menu, and then click the Summary tab.

Even if you do not send the template with the document, the document retains the name and location of the template. To change the template name and location to non-identifying values, follow these steps:
  1. On the Tools menu, click Templates and Add-Ins.
  2. Click Attach.
  3. Select a template that has a name and location that are not sensitive or unique.

    For example, because every computer that has Word installed on it includes Normal.dot, you may want to select Normal.dot.
  4. Click Open, and then click OK.
Note The template may contain macros, autotext entries, custom styles, and custom toolbars. By changing templates, you may make some of these items unavailable to your document.

back to the top

How to Remove Routing Slip Information

If you send a document through e-mail by using a routing slip, routing information may be attached to the document. To remove this information from the document, you must save the document in a format that does not retain routing slip information.

In Word, save your document in either Rich Text Format (RTF) or HTML format. Close the document, and then reopen the new file. Because the routing slip information is no longer present, you can now save your document in the Word format.

You can also follow these steps:
  1. Turn off Allow fast saves by using the instructions earlier in this article.
  2. On the File menu, point to Send to, and then click Other Routing Recipient.
  3. Click Clear to remove the routing slip, and then click OK.
  4. On the File menu, click Save.
The document is now saved without any routing slip information.

back to the top

How to Remove Mail Recipient Information

Word 2002 retains the To, CC, and Bcc e-mail addresses if you send a document by using the Send To command on the File menu, and then click Mail Recipient and the e-mail header is enabled for a document. The information can be removed automatically as described in the "How to Manually Remove Your User Name from Your Documents" section.

A Microsoft Visual Basic for Applications (VBA) macro can be used to enable the "Remove personal information from file properties on save" setting.

Important Before you use the following macro example, review the Disclaimer earlier in this article.

Sub RemoveInformation()
ActiveDocument.RemovePersonalInformaation = True
End Sub

back to the top

How to Remove the Names of Previous Authors

Word stores the names of the last 10 people who worked on a document in the document. This is an automatic feature that you cannot turn off.

You can remove the names of the last 10 authors from a document by using one of the following methods:
  • Save the document in a format that does not retain such information. For example, if you save the document in either RTF or HTML format, the authoring information is lost. You can then close and reopen the RTF or HTML document, and then save it in Word format.
  • Create a new document and then insert the content of the existing document into the new document. To do this, click Insert, and then File.
  • Use the Remove Personal Information option described earlier in the article. The Remove Personal Information option will remove these names.
Note This information is not stored by Word 2003.

back to the top

How to Remove Your Name from Visual Basic Code

Important Before you use the following macro example, review the Disclaimer earlier in this article.

When you record a VBA macro in Word, the recorded macro begins with a header that is similar to the following:
' Macro1 Macro
' Macro recorded 3/11/1999 by <User Name>
				
To remove your name from any macros that you have recorded, follow these steps:
  1. Open the document that contains the macros.
  2. On the Tools menu, point to Macro, and then click Visual Basic Editor or press ALT+F11.
  3. In the project window, double-click the module that contains the macros.
  4. Remove your name from the recorded macro code.
When you are finished removing your name, press ALT+Q to return to the program, and then click Save on the File menu.

back to the top

How to Remove Visual Basic References to Other Files

In the Visual Basic Editor, you can create a reference to another file. If a user opens a document that contains references to other files, the user can see the names of the referenced files.

To remove these references, follow these steps:
  1. Open the document that contains references.
  2. On the Tools menu, point to Macro, and then click Visual Basic Editor or press ALT+F11.
  3. On the Tools menu, click References.
  4. Click to clear the check box next to the referenced file or files.

    When you are finished, click OK.
  5. Press ALT+Q.
  6. On the File menu, click Save.
Note If you remove references to other files, this may adversely affect the ability of macros in your document to function correctly.

back to the top

How to Remove Network or Hard Disk Information

When you save a document to your local hard disk or to a network server, information that identifies the local hard disk or network server may be written in the document.

To remove this information from the document, follow these steps:
  1. Open the document.
  2. On the File menu, click Save As.

    Save the document to your floppy disk drive (generally drive A).
  3. On the File menu, click Close.
  4. Remove the floppy disk from your floppy disk drive.
You can now use Windows Explorer to copy the document from the floppy disk to any hard disk or network server.

Note Because of the space limitation of a floppy disk (generally 1.44 megabytes [MB]), this method cannot be used if the document file size exceeds the free space on the floppy disk.

back to the top

Embedded Objects in Documents May Contain Metadata

If you embed an object in a document, the object still retains its own properties, regardless of what you do to the document. For example, if you embed a Microsoft Excel workbook in a Word document, the document and the workbook each has its own properties.

To remove metadata from an embedded object, activate the object, remove any metadata as described in the previous sections, reactivate the container document, and then save the container document.

Note When you activate an embedded object in a document, only part of the embedded object appears in the document; the object may contain additional information that does not appear. If you want a document to contain only a rendering of the embedded object and not the actual contents, use the Cut command on the Edit menu to delete the object, and then use the Paste Special command to paste the object into the document by using a Metafile format. After you do this, you can no longer edit the embedded object; however, it will not contain any metadata.

back to the top

Document Variables May Contain Metadata

Important Before you use the following sample macro, review the Disclaimer earlier in this article.

To delete the document variables contained in your Word document, use the following sample macro:
Sub DeleteDocVars()

   Dim Response
   Dim myVar As Variable

   For Each myVar In ActiveDocument.Variables
      Response = MsgBox("The document variable: " & myVar.Name & vbCr & _
         "Value: " & myVar.Value & vbCr & vbCr & _
         "Do you want to delete the variable from this document?", vbYesNo)
            
      If Response = "6" Then
         ' Delete the variable.
         myVar.Delete
      Else
         End
      End If
   Next myVar
            
   MsgBox "There are no variables in the document."
   
End Sub
				
For more information about variables, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type Variables Property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

back to the top

How to Remove the AdHocReviewCycleID Property from Documents

When you send a Word 2002 document in e-mail the AdHocReviewCycleID property is added to the document and the property is assigned a randomly generated GUID value. When you open a document with an AdHocReviewCycleID value, the value is compared to the GUIDs of documents that you have previously created on your computer. If the GUID matches a GUID on your computer, you are prompted with the following dialog:Do you want to merge changes in DocumentName back into FilePathDocumentName?To remove the AdHocReviewCycleID property, follow these steps:
  1. Open the document.
  2. Click File, click Properties, and then click the Custom tab.
  3. In the Properties window, under the Name heading, click _AdHocReviewCycleID, and then click Delete.
  4. Click OK.

back to the top

General Suggestions About Security

Here are some general suggestions that you can use to increase the level of security in your computing environment:
  • Whenever you are not at your computer, help to secure it by using a password-protected screen saver, power-on password, or the Windows NT lock feature.
  • If your computer has any shared folders, make sure that you apply passwords to them so that only authorized users can access your shares. For even better security, use user-level access control, so that you can control exactly who can access your computer's shares.
  • When you delete a file, empty the Recycle Bin immediately. You may want to consider a utility that completely erases or overwrites files when they are deleted.
  • When you back up your data, store the backup files in a secure location, such as a safe, a security deposit box, or a locked cabinet. Store one copy of your backups at a secure off-site location in case your primary location is unusable.
  • Make sure that important documents are password-protected so that only authorized users can open them. Store your passwords in a secure, separate location. Note that if you cannot recall a password, there is no way to recover the contents of a password-protected document.
  • Do not distribute documents in electronic form. Instead, print them out. Do not use identifying elements such as distinctive fonts, watermarks, logos, or special paper, unless you have to (for example, for a presentation).
  • E-mail is not anonymous. Do not e-mail a document if you are concerned about your identity being attached in any way to the document.
  • Do not send a document over the Internet by using either the HTTP or File Transfer Protocol (FTP) protocol. Information sent across these protocols is sent in "clear text,". This means that it is technically possible (however unlikely) for it to be intercepted.
back to the top

Modification Type:MinorLast Reviewed:7/27/2006
Keywords:kbConfig kbdta kbHOWTOmaster KB290945