Document.DeleteAllCommentsShown (Word)

Löscht alle auf dem Bildschirm angezeigten Korrekturen im angegebenen Dokument.

Sub HideDeleteComments() 
 Dim rev As Reviewer 
 With ActiveWindow.View 
 'Display all comments and revisions 
 .ShowRevisionsAndComments = True 
 .ShowFormatChanges = True 
 .ShowInsertionsAndDeletions = True 
 For Each rev In .Reviewers 
 rev.Visible = True 
 'Hide only the revisions/comments made by the 
 'reviewer named "Jeff Smith" 
 .Reviewers(Index:="Jeff Smith").Visible = False 
 End With 
 'Delete all comments displayed in the active view 
End Sub