PC Review


Reply
Thread Tools Rate Thread

Copy comments

 
 
chen
Guest
Posts: n/a
 
      20th Feb 2008
I have a word document and I need to copy all the comments inserted to a new
document.
 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      20th Feb 2008
The following macro should do that:

Sub ExtractComments()
Dim DocA As Document
Dim DocB As Document
Dim comm As Variant
Dim Count As Long
Dim sComment As String
Set DocA = ActiveDocument
Set DocB = Word.Documents.Add
Count = 1
For Each comm In DocA.Comments
sComment = DocA.Comments(Count).Range.Text
sComment = "(" & DocA.Comments(Count).Initial & Count & ") " & sComment
DocB.Activate
Selection.TypeText sComment & vbCr
Count = Count + 1
Next comm
End Sub

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

chen wrote:
> I have a word document and I need to copy all the comments inserted
> to a new document.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy comments box chesjak Microsoft Excel Misc 3 23rd Oct 2008 11:37 PM
Re: How top copy cell comments Dave Peterson Microsoft Excel Programming 3 9th Dec 2006 12:40 AM
Copy comments =?Utf-8?B?R0dpbGw=?= Microsoft Access Forms 3 3rd Oct 2006 07:58 PM
Copy Comments =?Utf-8?B?ZmllbGQ4NTg1?= Microsoft Excel Worksheet Functions 1 15th Dec 2005 05:58 AM
Macro to copy into Comments pop-up =?Utf-8?B?SmVsbHkncw==?= Microsoft Excel Programming 1 29th Nov 2005 12:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 AM.