furtivevole
Technical User
Hopefully a simple answer!
I am running a macro from a mailmerge document (let's call it A) that generates a formletters document (let's call it B). The macro has to reformat data in B, copy it to clipboard, then return focus to A.
I assume that I therefore need to make B temporarily the active document.
Neither "A" nor "B" can be hardcoded, but full path names are held as global variables.
What's the best means of switching between one and the other? It's possible that the user could have other docs open concurrently, so (unlike a recent posting on this subject) I can't reply on a simple Windows(1) and Windows(2).
TIA, Linnet
I am running a macro from a mailmerge document (let's call it A) that generates a formletters document (let's call it B). The macro has to reformat data in B, copy it to clipboard, then return focus to A.
I assume that I therefore need to make B temporarily the active document.
Neither "A" nor "B" can be hardcoded, but full path names are held as global variables.
What's the best means of switching between one and the other? It's possible that the user could have other docs open concurrently, so (unlike a recent posting on this subject) I can't reply on a simple Windows(1) and Windows(2).
TIA, Linnet