Copying comments

H

Harvey

How can I copy all comments (and only comments) in a Word
document into a separate Word file?
 
D

Doug Robbins - Word MVP

Hi Harvey,

Use the following code in a macro that is run when the document containing
the comments is the active document:

Dim ac As Comment
Dim source As Document, target As Document
Set source = ActiveDocument
Set target = Documents.Add
For Each ac In source.Comments
target.Range.InsertAfter ac.Range & vbCr
Next ac

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top