PDA

View Full Version : Compare and merge 2 paragraphs (create redlines)



debkev1010
02-03-2011, 09:26 AM
I'm working with a requirements database (DOORS) that exports change proposals to Word. The export contains the current requirement and the proposed requirement. Using VBA, I'd like to select the 2 paragraphs, use Word's Compare and Merge function to create a 3rd paragraph with redlines (tracked changes). I don't know if I can do a compare/merge on 2 objects without making the objects files. I have a feeling the Compare/Merge function in Word requires 2 files which if that's the case, I'd create a file for each object and then do the Compare/Merge, and then copy-n-paste the contents of the 3rd file back into the report. So my first question is:
1. can I do a compare/merge (with redlines) using objects, not files and how do I do it
2. if no to question 1, how do I do the compare/merge (with redlines) using files.

Thanks,
Kevin