>I use word to create temporary documents based upon templates. They have data merged, are printed, and are then closed without saving. I'd like to be able to refer to them during the automation process as something other than Document n. Is there a way to do this?
You may use ActiveDocument or ActiveWindow, and then no name is needed, like:
oWord = CREATEOBJECT("Word.Application")
oWord.documents.add()
with oWord.ActiveDocument
endwith