View Single Post
 
Old 10-06-2018, 04:57 PM
Peterson Peterson is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default Accepting track changes via macro skips last paragraph mark, but not when accepting via Review menu

I periodically see documents, all with track changes turned on, that have styles applied to the final paragraph mark, shown as revisions. When I click Review > Accept > Accept All Changes, the formatting change associated with the last paragraph in the document is accepted; however, when I run a macro to achieve the same thing, the revision remains. (All other revisions in the document are accepted.)

Code:
Sub WhyIsntThisDoingTheSameThingAsViaTheReviewMenu()
      ActiveDocument.AcceptAllRevisions
  End Sub
I tested three files, all based on different templates (one of which is based on a "pure," default Word template). Two of the three files (attached) failed to have these last-paragraph revisions cleared when running the macro. Why does the macro not work on the last paragraph mark, or, put another way, how can I force it to work on that final mark?


Thanks
Attached Files
File Type: docx Test Doc.docx (36.6 KB, 8 views)
File Type: docx Test Doc 4 - based on default template.docx (12.7 KB, 8 views)
Reply With Quote