Error: This command is not available because no document is open.
We are merging data with a Word doc. Depending on certain conditions, we insert a secind doc and merge more data.
I have been using this this code to do this
Set objWord = GetObject(, "Word.Application")
Set oDoc = objWord.ActiveDocument
It looks like the doc may not be active. Is there a way to activate it without openning a new instance?
Anyone have any thoughts?
Thanks
Last edited by RayL; September 27th, 2010 at 02:40 PM..
Reason: New info
|