A
Alan
I have a MS Word document in which I have put links to various cells in an
Excel worksheet. I print the MS Word document from Excel through VBA
automation.
In MS Word I have checked "Update fields on Print", which updates the fields
when I issue wpApp.ActiveDocument.Printout
I am able to open the word document, and print it successfully. The problem
I am having is that I need to print it 3,000 times as I cycle through my
code.
After about the 20 records MS Word generates an error message:
Word has insufficient memory. You will not be able to undo this action once
it is completed. Do you want to continue? (Yes,No)
At this point I can only close winword, which leaves it running in the
background. So using task manager on the processes screen I kill winword.exe,
and then Excel crashes with:
Error #4248: This command is not available because no document is open.
Anyone have an idea for a workaround? Or a better way to manager data
transfer to Word (Bookmarks?)
Thanks in advance for your reply!!
Alan
Excel worksheet. I print the MS Word document from Excel through VBA
automation.
In MS Word I have checked "Update fields on Print", which updates the fields
when I issue wpApp.ActiveDocument.Printout
I am able to open the word document, and print it successfully. The problem
I am having is that I need to print it 3,000 times as I cycle through my
code.
After about the 20 records MS Word generates an error message:
Word has insufficient memory. You will not be able to undo this action once
it is completed. Do you want to continue? (Yes,No)
At this point I can only close winword, which leaves it running in the
background. So using task manager on the processes screen I kill winword.exe,
and then Excel crashes with:
Error #4248: This command is not available because no document is open.
Anyone have an idea for a workaround? Or a better way to manager data
transfer to Word (Bookmarks?)
Thanks in advance for your reply!!
Alan