https://wiki.proz.com/forum/office_applications/334919-macro_for_converting_strike_underline_to_tracked_changes.html

Macro for converting strike/underline to tracked changes
Thread poster: Samuel Murray

Samuel Murray  Identity Verified
Netherlands
Local time: 09:37
Member (2006)
English to Afrikaans
+ ...
May 24

Hello everyone

In MS Word, I have a nice macro that I got somewhere that converts tracked changes into actual formatting (strike-through and underline). I also have one that converts tracked changes into normal text and puts square brackets around inserted text and curly brackets around deleted text.

(These macros are based on code from http://www.wordbanter.com/show
... See more
Hello everyone

In MS Word, I have a nice macro that I got somewhere that converts tracked changes into actual formatting (strike-through and underline). I also have one that converts tracked changes into normal text and puts square brackets around inserted text and curly brackets around deleted text.

(These macros are based on code from http://www.wordbanter.com/showthread.php?t=68482 and http://wordribbon.tips.net/T012055_A..._Brackets.html.)

What I would very much like to have, though, is a macro that does the opposite.

In other words, if an author used e.g. strike-through for deleted text and underline for inserted text, how can I convert the file so that strike-through text actually shows up as a tracked deletion, and the underlined text shows up as a tracked insertion? Or if he used square and curly brackets to surround inserted and deleted text, how can I convert it to actual tracked insertions and deletions?

In my files, text is never both underlined and strike-through, and I don't need to track multiple editors in a single document.

Do you know of a macro that does that?

Thanks!

(using Word 2003 and Word 2016 on Windows 7)
Collapse


 

Philip Lees  Identity Verified
Greece
Local time: 10:37
Member (2008)
Greek to English
Strike-through is easy May 25

I don't know about a macro, but you can do the strike-through part easily enough with search and replace. Just replace any struck-through text with an empty string when "track changes"is turned on.

I tried something similar with the underline, replacing all underlined text with itself. That gives you the tracked insertion, but leaves the original text marked as deleted. Getting rid of those remnants might be the difficult part....
See more
I don't know about a macro, but you can do the strike-through part easily enough with search and replace. Just replace any struck-through text with an empty string when "track changes"is turned on.

I tried something similar with the underline, replacing all underlined text with itself. That gives you the tracked insertion, but leaves the original text marked as deleted. Getting rid of those remnants might be the difficult part.
Collapse


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Macro for converting strike/underline to tracked changes

Advanced search






SDL Trados Business Manager Lite
Create customer quotes and invoices from within SDL Trados Studio

SDL Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »