MarcusESP79
Programmer
Hi, this problem is driving me to despair.
I have a macro which picks up an individual Word document from a bespoke database system, it then copies the selection and pastes into a new document, then picks up the next Word doc and pastes to the end of the new doc and so on and so forth.
If I make the objword.visible = False then it flies through, BUT my images aren't appearing on the large document (just a box outline with a message saying that there are memory issues).
However, if I set Word to be visible it works for about half the images on the large doc (obviously depending how large the doc and/or image(s) is/are).
The only way I've found around this is to make the macro wait as follows:
For intfn1 = 1 To 400000
DoEvents
Next intfn1
This works perfectly, but takes an absolute age. About 5-6 hours to paste 350 documents together is unacceptable.
Does anyone have any idea how I can get around this problem?? i.e. Make it works quickly AND efficiently?
Many thanks.
PS. the reason for the large document is to produce a large pdf for printing.
I have a macro which picks up an individual Word document from a bespoke database system, it then copies the selection and pastes into a new document, then picks up the next Word doc and pastes to the end of the new doc and so on and so forth.
If I make the objword.visible = False then it flies through, BUT my images aren't appearing on the large document (just a box outline with a message saying that there are memory issues).
However, if I set Word to be visible it works for about half the images on the large doc (obviously depending how large the doc and/or image(s) is/are).
The only way I've found around this is to make the macro wait as follows:
For intfn1 = 1 To 400000
DoEvents
Next intfn1
This works perfectly, but takes an absolute age. About 5-6 hours to paste 350 documents together is unacceptable.
Does anyone have any idea how I can get around this problem?? i.e. Make it works quickly AND efficiently?
Many thanks.
PS. the reason for the large document is to produce a large pdf for printing.