|
|
|
|
|
|
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()
Dim comM As Comment
For Each comM In ActiveDocument.Comments
comM.Delete
Next
ActiveDocument.RemovePersonalInformation = True
End Sub
|
How to use:
|
- Copy the code above.
- Open Word.
- Hit Alt+F11 to open the Visual Basic Editor.
- Double-click Normal on the left.
- From the menu, choose Insert-Module.
- Paste the code into the window at the right of the VBE.
- Hit the Save diskette and close the VBE.
|
Test the code:
|
- Open any document containing such information.
- Hit Tools-Macro-Macros and double-click quikClean.
|
Sample File:
|
No Attachment
|
Approved by fumei
|
This entry has been viewed 120 times.
|
|