If you assign variable names to the documents as you open them (in the same Word instance) and subsequently refer to the documents by those variable names, it will not matter whether they are in the foreground or background, visible or invisible.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|