E
Ed from AZ
I have two documents open. It would be a royal pain to have to browse
for them; I just have the folders open and open the two docs needed.
I need to desginate one document as "doc1" and the other as
"doc2" (Both are Dim'd As Document objects.) I tried a bit with a
UserForm, but culdn't get it to work. So in my code, I Stop the code,
which lets me click in a doc, then F5 in the VBE and Stop again to
click in the second doc, then F5 again to run.
MsgBox "Click in the first document"
Stop
Set doc1 = ActiveDocument
Set rng1 = doc1.Range(Selection.Range.Start, doc1.Content.End)
MsgBox "Click in the second document"
Stop
Set doc2 = ActiveDocument
Set rng2 = doc2.Range(Selection.Range.Start, doc2.Content.End)
Is there an easier, more seamless way to do this?
Ed
for them; I just have the folders open and open the two docs needed.
I need to desginate one document as "doc1" and the other as
"doc2" (Both are Dim'd As Document objects.) I tried a bit with a
UserForm, but culdn't get it to work. So in my code, I Stop the code,
which lets me click in a doc, then F5 in the VBE and Stop again to
click in the second doc, then F5 again to run.
MsgBox "Click in the first document"
Stop
Set doc1 = ActiveDocument
Set rng1 = doc1.Range(Selection.Range.Start, doc1.Content.End)
MsgBox "Click in the second document"
Stop
Set doc2 = ActiveDocument
Set rng2 = doc2.Range(Selection.Range.Start, doc2.Content.End)
Is there an easier, more seamless way to do this?
Ed