Macro to summarize comments

G

G.R. Toro

Hi,

I have a large Word document, where I have added a number of comments using
the comment feature (I use Word XP). I would like to know if anyone has
writen vba to summarize those comments.

The macro I envision would create a new document that would contain the
comments, together with some way to preserve their context (such as the
affected paragraph together with some indication of which page the paragraph
came from). Ideally, this macro would do the same with changes introduced
with "track changes" feature.

Has anyone written such a macro? Any pointers on how to do it?

Thanks,

Gabriel
 
H

Helmut Weber

Hi,
Any pointers on how to do it?
well, probably the most important thing, you need,
is the reference property of "comment".
Like:
Dim oCmm As Comment
For Each oCmm In ActiveDocument.Range.Comments
MsgBox oCmm.Reference.Words(1)
MsgBox oCmm.Reference.Paragraphs(1).Range.Text
MsgBox oCmm.Reference.Information(wdActiveEndPageNumber)
MsgBox oCmm.Range.Text
'... etc
Next
As far as tracked changes are concerned,
I'd expect, you would collect all kinds
of single inserted or deleted letters,
spaces or punctuation signs.
 

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