Document.AcceptAllRevisionsShown method (Word)
Accepts all revisions in the specified document that are displayed on the screen.
Syntax
expression. AcceptAllRevisionsShown
expression Required. A variable that represents a Document object.
Remarks
Use the RejectAllRevisionsShown method to reject all revisions in a specified document that are displayed on the screen.
Example
This example accepts all revisions displayed after hiding revisions made by "Jeff Smith." This example assumes that the active document was reviewed by more than one person and that the name of one of the reviewers is "Jeff Smith."
Sub AcceptAllChanges()
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
Next
'Hide only the revisions/comments made by the
'reviewer named "Jeff Smith"
.Reviewers(Index:="Jeff Smith").Visible = False
End With
'Accept all revisions displayed in the active view
ActiveDocument.AcceptAllRevisionsShown
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기