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 / July 2005

Tip: Looking for answers? Try searching our database.

Delete Comment Macro?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ML - 06 Jul 2005 22:27 GMT
Is there an easy way to delete all comments fro ma document via a macro?
Jean-Guy Marcil - 06 Jul 2005 22:33 GMT
ML was telling us:
ML nous racontait que :

> Is there an easy way to delete all comments fro ma document via a
> macro?

If you want to iterate the comment collection and check them out first, try
this:

'_______________________________________
Dim myComment As Comment

For Each myComment In ActiveDocument.Comments
   'If Check something
       myComment.Delete
   'Else do nothing or something else
   'End If
Next
'_______________________________________

Else, in one fell swoop:

WordBasic.DeleteAllCommentsInDoc

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
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.