Word

Remove Personal Information From File

Ease of Use

Intermediate

Version tested with

2002 

Submitted by:

gilbar

Description:

This is a macro for removing the author name and any comments from a Word document. 

Discussion:

We use this at work before we publish on the web so that our employee's names aren't distributed to anyone. 

Code:

instructions for use

			

Sub quikClean() 'remove comments Dim comM As Comment For Each comM In ActiveDocument.Comments comM.Delete Next 'remove author and any other names ActiveDocument.RemovePersonalInformation = True End Sub

How to use:

  1. Copy the code above.
  2. Open Word.
  3. Hit Alt+F11 to open the Visual Basic Editor.
  4. Double-click Normal on the left.
  5. From the menu, choose Insert-Module.
  6. Paste the code into the window at the right of the VBE.
  7. Hit the Save diskette and close the VBE.
 

Test the code:

  1. Open any document containing such information.
  2. Hit Tools-Macro-Macros and double-click quikClean.
 

Sample File:

No Attachment 

Approved by fumei


This entry has been viewed 120 times.

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express