E
Ed
I have a macro which calls up other macros as part of a loop. In the main
routine, I create a document, name it, save it. It is Dimmed and Defined.
But the subroutine macros don't recognize it by name, even though it's
needed in each of the 8,000+ loops.
The only solution I've come up with so far is to close the document just
before executing the loop, then have the subroutine open it, use it, and
close it again. This means this document is opening, saving, and closing
over 8,000 times. I can't help but think it would be faster to leave it
open and available to the subroutine by passing off the definitions and such
for the subroutine to reference, but I don't know how.
Any help is appreciated.
Ed
routine, I create a document, name it, save it. It is Dimmed and Defined.
But the subroutine macros don't recognize it by name, even though it's
needed in each of the 8,000+ loops.
The only solution I've come up with so far is to close the document just
before executing the loop, then have the subroutine open it, use it, and
close it again. This means this document is opening, saving, and closing
over 8,000 times. I can't help but think it would be faster to leave it
open and available to the subroutine by passing off the definitions and such
for the subroutine to reference, but I don't know how.
Any help is appreciated.
Ed