Page 1 of 1

Accept track changes in a selected text

Posted: 2025-10-18 01:39:39
by Nobumi Iyanaga
Hello,

I am editing a file with many track change records. Is it possible to have a macro which would accept all changes that are in a selected text? And is it possible to accept only formatting changes?

I am unable to write macros, but I would be very grateful if any kind person would write such macros.

Thank you very much in advance!

Re: Accept track changes in a selected text

Posted: 2025-10-18 02:51:27
by phspaelti
Hello Nobumi,
Hisashiburi. Hope you are doing well.

Yes, it's quite easy to do what you want. Try the attached macro.

Best
Philip
Nobumi Accept Tracked Changes.nwm
(7.03 KiB) Downloaded 33 times

Re: Accept track changes in a selected text

Posted: 2025-10-18 06:21:57
by Nobumi Iyanaga
Dear Philip,

Thank you very much for your macro. It worked perfectly.

I made another macro from it, just commenting out the " && $change.isTextAttributesChanged" in the line "if $selectedRange.containsRange($change.markedTextRange) && $change.isTextAttributesChanged", it accepts all the changes.

This is just what I was looking for.

Thank you again.

Re: Accept track changes in a selected text

Posted: 2025-10-19 17:47:34
by phspaelti
Great. I'm glad to hear that :)