Accepting All Deletions in a Document

by Allen Wyatt
(last updated July 10, 2021)

Mitch uses Track Changes in his documents quite a bit. He knows how to accept or reject changes. He's wondering, though, if there is a way to accept a complete subset of changes, such as accepting all deletions in the document, without affecting any other tracked changes.

This can be done, but only by using a macro. Fortunately, VBA allows you to access the revisions made in your document, as long as they were made with Track Changes turned on. The following macro steps through each revision and, if it is a deletion, it accepts that revision:

Sub AcceptDeletions()
    Dim oRev As Revision

    For Each oRev In ActiveDocument.Revisions
        If oRev.Type = wdRevisionDelete Then oRev.Accept
    Next oRev
End Sub

Note that there are two key elements in this macro. First, is the value stored in the .Type property. Word actually allows 22 different types of revisions, as detailed in this WordTip. As shown in the example above, the macro checks only to see if the .Type property indicates that the revision is, in fact, a deletion.

The second key element is the .Accept method. This causes the revision to be accepted, but you could just as easily specify the .Reject method, which would cause the revision to be rejected.

Finally, you should note that after running the macro, all deletions will be accepted in the document, but you won't be able to use Ctrl+Z to undo the effects of the macro.


If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13881) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Working with Compressed Files and Folders via NTFS Compression

Windows 10 provides two ways to work with compressed files and folders. One way is to use NTFS compression, which is ...

Discover More

Deleting MRU Entries

By default Word dutifully keeps track of the different files you've worked on in the past. If you want to delete an entry ...

Discover More

Creating Usable Figure Captions

Many people add both images and figure captions within text boxes so they can be easily positioned within a document. ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (ribbon)

Getting Rid of Markup

Word includes editing tools that allow you to track what changes you've made in a document. Making the tracked changes go ...

Discover More

Using Different Colors with Tracked Changes

When changes are made in a document with Track Changes turned on, each author's changes are normally shown in a different ...

Discover More

Hiding Formatting Changes in Track Changes

Word can easily (and handily) keep track of changes you make in your document. You may not want all your changes tracked, ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one more than 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)

This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.


FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.