Hello Everyone!
My first thread..and the first thing I learnt is that my Title is way too long!
This is the full title: "Word macro to allow the user to edit two displayed documents in the middle of complex nested Range.Find loops, and continue when finished editing."
OK, so I have a complex macro that compares similar texts having identical reference prefixes in two documents.
The Working document (A) is searched for a particular style, then the reference prefix is extracted.
The prefix is then used to search through the entire other document (B) for a matching reference.
If found, both documents are displayed side-by-side with the two groups of paragraphs, that are associated with the reference prefix, selected.
The user is asked if they want to copy the entire group from doc A to B, or B to A, or edit either doc.
So to allow the user to edit the docs numerous times in the middle of that process, and then resume, working through the entire doc A, is my need.
I have done a lot of searching and so far found using a nonmodal form with a DoEvents loop until the form is unloaded by clicking a button on the form works, but the CPU get "hammered" during the loop.
Does anyone know of a better way?
Best regards,
PeterT