Reply
 
Thread Tools Display Modes
  #1   Report Post  
leuce leuce is offline
Junior Member
 
Location: Netherlands
Posts: 0
Default Add brackets to tracked changes

Hello everyone

Does anyone know of a macro that will modify a tracked changes document in MS Word so that it adds curly brackets on either side of a deletion and square brackets on either side of an insertion?

It doesn't matter to me if the brackets close whole chunks of deletions or insertions, or deleted or inserted characters individually, nor does it matter to me if the tracks remain intact and/or if the brackets are tracked.

Attached are two examples of what I'm looking for (any of the 6 options shown under the example would be acceptable to me, though I would prefer the third one, i.e. nothing in tracks anymore, and whole tracked sections bracketed).

I need this because I want to save the text in a database that accepts only plain text, and I want to be able to see where the changes were.

Thanks
Samuel
Attached Images
  
  #2   Report Post  
leuce leuce is offline
Junior Member
 
Location: Netherlands
Posts: 0
Default

I tinkered with a macro posted previously on this forum and found a way of doing it (I tried to modify Chip's macro as well, but could not figure out how to do it):

Sub StrikethroughDeletions3()
' Based on http://www.wordbanter.com/showthread.php?t=68482
' 1. Make sure Track Changes is turned *off* on the document you're working on.
' 2. Run the macro.
' 3. Start a new document, turn track changes on for that (blank) doc, paste all
' the contents of the working doc into the new (text comes in as a new, mega-
' insertion), then ACCEPT all changes in the new.
Number = ActiveDocument.Revisions.Count
For x = 1 To Number
Set myRev = ActiveDocument.Revisions(x).Range
This = ActiveDocument.Revisions(x).Type
If This = 2 Then
myRev.Select
Selection.InsertAfter "}"
Selection.InsertBefore "{"
End If
If This = 1 Then
myRev.Select
Selection.InsertAfter "]"
Selection.InsertBefore "["
End If
Next x

End Sub
  #3   Report Post  
EllaRooke EllaRooke is offline
Junior Member
 
Posts: 0
Default

The blog post is about the adding of the brackets with the doing of long and the tracked changes in the life of couple of people. The junior member is here that can collide with each other in the https://topcvwritersuk.com/ with the building up of the life stages for having a long time.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted text that I made tracked changes to. Are tracked changes nik Microsoft Word Help 5 May 5th 09 12:34 PM
brackets around captions Gklass Microsoft Word Help 0 October 21st 07 11:17 PM
four corner brackets Gwen Microsoft Word Help 1 February 17th 07 03:53 AM
brackets automatically appear rreneerob Microsoft Word Help 2 February 17th 06 06:35 PM
brackets Orry Microsoft Word Help 1 July 10th 05 07:04 AM


All times are GMT +1. The time now is 06:30 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"