-
-
Save pa-0/843bb5821d7038df5b64b5065ffd84b1 to your computer and use it in GitHub Desktop.
Accept All Non-Deletion Changes
This file contains hidden or 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