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
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org