Created
June 8, 2020 05:11
-
-
Save masanobuimai/37cceb4258046d0e7964d3c6927b50f2 to your computer and use it in GitHub Desktop.
削除以外の変更履歴を一括承諾する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Macro1() | |
' 挿入/変更/削除以外の変更履歴を一括承諾する | |
' https://docs.microsoft.com/ja-jp/office/vba/api/word.wdrevisiontype | |
For Each myRev In ActiveDocument.Revisions | |
myType = myRev.Type | |
Select Case myType | |
Case _ | |
wdRevisionDisplayField, _ | |
wdRevisionParagraphNumber, _ | |
wdRevisionParagraphProperty, _ | |
wdRevisionProperty, _ | |
wdRevisionSectionProperty, _ | |
wdRevisionStyle, _ | |
wdRevisionStyleDefinition, _ | |
wdRevisionTableProperty | |
myRev.Accept | |
End Select | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment