neogeoIT
10-13-2010, 07:55 PM
I have created word.application object and document object and apply code to the document through Access, the code runs no problem.
However, when the code run for the second time while the first document still open, no matter what i try the code still reference to the first document but not the new create second document.
I tried to use document name, which i debug see the name is correct, or use the document object to ref, or use activedocument after using the .activate still no help.
set all objects to nothing, end the sub and run again, still not good.
anything i can do or is it a bug in office3 2010?
However, when the code run for the second time while the first document still open, no matter what i try the code still reference to the first document but not the new create second document.
I tried to use document name, which i debug see the name is correct, or use the document object to ref, or use activedocument after using the .activate still no help.
set all objects to nothing, end the sub and run again, still not good.
anything i can do or is it a bug in office3 2010?