D
Dave
G'day,
I am dumping information into MS Word 2000 from MS Project
98 via VBA code. I am doing this to allow me to present
certain data in a report format that suits our
requirements.
This "report" could be run numerous times in a short
period by the user. It works well the first time. However,
if it is run a second time (while the first one is still
open), or even if another Word file is open, it causes an
error towards the end of the process. The code refers to
the ActiveDocument in numerous places, which it seems to
cope with, but for some reason it changes to start working
on the other open Word document and this causes an error
because it is not finding what it is expecting.
I am wondering if there is some way to definitely refer to
the new document or to kill the connection to any other
open Word documents without having to close them (they may
want them both open at the one time to compare
information).
Any help would be greatly appreciated.
(I wasn't sure whether to post this to the MS Word or MS
Project user groups, but thought it was more of a Word
issue).
Thanks,
Dave.
I am dumping information into MS Word 2000 from MS Project
98 via VBA code. I am doing this to allow me to present
certain data in a report format that suits our
requirements.
This "report" could be run numerous times in a short
period by the user. It works well the first time. However,
if it is run a second time (while the first one is still
open), or even if another Word file is open, it causes an
error towards the end of the process. The code refers to
the ActiveDocument in numerous places, which it seems to
cope with, but for some reason it changes to start working
on the other open Word document and this causes an error
because it is not finding what it is expecting.
I am wondering if there is some way to definitely refer to
the new document or to kill the connection to any other
open Word documents without having to close them (they may
want them both open at the one time to compare
information).
Any help would be greatly appreciated.
(I wasn't sure whether to post this to the MS Word or MS
Project user groups, but thought it was more of a Word
issue).
Thanks,
Dave.