Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

How to programmatically delete Comments using Word 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Micheline - 06 Nov 2006 20:17 GMT
How to programmatically delete Comments using Word 2000
I have found the following for Word 2002.

This example deletes all comments in the active document. This example
assumes you have comments in active document.

Sub DelAllComments()
   ActiveDocument.DeleteAllComments
End Sub

I have tried it in Word 2000, without success.
Thanks again.
Dave Lett - 06 Nov 2006 20:49 GMT
Hi,

I think you can use something like the following:

Dim iCom As Integer
For iCom = ActiveDocument.Comments.Count To 1 Step -1
   ActiveDocument.Comments(iCom).Delete
Next iCom

HTH,
Dave

> How to programmatically delete Comments using Word 2000
> I have found the following for Word 2002.
[quoted text clipped - 8 lines]
> I have tried it in Word 2000, without success.
> Thanks again.
Micheline - 07 Nov 2006 13:11 GMT
Wonderful.... merci :)

> Hi,
>
[quoted text clipped - 20 lines]
> > I have tried it in Word 2000, without success.
> > Thanks again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.