![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
Thanks |
|
#2
|
|||
|
|||
|
Bringing this back from the dead - hoping someone can shed some light on this, as I never figured this out and would love to be able to loop through dozens of files at a time and accept all revisions, regardless of whether there are revisions in the last paragraph. Thanks!
|
|
#3
|
||||
|
||||
|
Just in time for the zombie apocalypse...
Since the built-in command works, you could use that in your code instead Code:
Application.CommandBars.ExecuteMso ("AcceptAllChangesInDocAndStopTracking")
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#4
|
|||
|
|||
|
Ha, yes, the impending zombie apocalypse!
Thank you, Andrew, for the solution! Incidentally, I also need to leave track changes turned on in these docs I'm looping through, so, in case someone else finds this post and has a similar need, I ended up going with this: Code:
Application.CommandBars.ExecuteMso ("ReviewAcceptAllChangesInDocument")
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Having Revision Bars Persist after Accepting Changes
|
gocuse | Word | 3 | 08-20-2017 10:47 PM |
WORD not accepting .png file
|
Fr. Jonathan | Drawing and Graphics | 1 | 07-26-2017 08:24 PM |
Track Changes Automatically Accepting Changes after Closing and Re-Opening Document
|
cnethercott | Word | 1 | 01-16-2017 03:21 AM |
Accepting changes with TC deletes undeleted narrative
|
jklein | Word | 4 | 10-02-2016 06:09 PM |
Leaving change indicators after accepting changes
|
jpbledsoe | Word | 2 | 08-14-2006 07:59 AM |