btpaster.blogg.se

How to track changes in word 2016 and compare documents
How to track changes in word 2016 and compare documents











how to track changes in word 2016 and compare documents
  1. #How to track changes in word 2016 and compare documents software#
  2. #How to track changes in word 2016 and compare documents code#

In this case, the current revision is rejected. If they're not the same, then it checks whether the current author is not the main author and whether the current revision is in the same range as the previous, meaning it has "overwritten" a revision by the main author. If it is and no rejection immediately preceded this part of the loop, then it checks whether the current author was also the author of the previous revision, as there can be no conflict if they're the same.

#How to track changes in word 2016 and compare documents code#

The following VBA code loops through a collection of Revisions, checks whether the Revision is an insertion or deletion. So I want the updated macro to work so that Figure 2-C is same as Figure 1-C. The problem becomes evident here in "C": The word "plantes" became dark blue crossed out text even though it was not part of the original text.Īs you can see, Figure 2-C differs from Figure 1-C. Now let's look what happens when the text has been edited by two (or theoretically more) different editors, with the macro run at the end (not inbetween): In "C" you can see that the dark blue crossed out text is what has been deleted from the original text, and red is what has been added. Here is an example of how the macro works (properly) when the text is edited by one author. I would like to only convert deleted original text to crossed out text, but not the deleted edit (edit by one author deleted by another author). The above macro, instead of removing it, transforms it into the crossed out text which my colleagues mistakenly think was present in the original. In this case, the second author may delete the addition by the first author (not the original text).

how to track changes in word 2016 and compare documents

The problem starts when another person edits the already edited document. MsgBox ("Unexpected Change Type Found"), vbOKOnly + vbCriticalĬ ' move insertion point MsgBox "There are no revisions in this document", vbOKOnlyįor Each chgAdd In ActiveDocument.RevisionsĬ = wdColorDarkBlueĮlseIf chgAdd.Type = wdRevisionInsert Then The following macro works if only one person edited the Word document. But I still need to keep the crossed out text and the newly added text so that my colleagues know what was the original version and what is the change.

how to track changes in word 2016 and compare documents

#How to track changes in word 2016 and compare documents software#

I am required to subject MS Word documents to a third-party software which does not recognize the "track changes" markup.













How to track changes in word 2016 and compare documents