Hi all, long time reader, 1st time poster...
Any way i can speed this up? I am copying an entire template sheet (by cells-see reason below) over to a new sheet, and then copying the printarea as well. My code runs through a lot of different functions and routines, but it seems to take a few (3~4) seconds for the printarea to set. (the rest of my code takes < 1 sec /per page it makes).
I've tried copying and renaming the template (which bypasses the problem), but then i am limited to only copying 50 sheets in one excel session (MS capabilities ) , and need the program to be robust enough for that not to occur. Any suggestions?
My current code sets a string to the template application.pagesetup.printarea, and then sets my new sheet up to the string.
Anyone run into this or have any solutions?
THANKS!
Any way i can speed this up? I am copying an entire template sheet (by cells-see reason below) over to a new sheet, and then copying the printarea as well. My code runs through a lot of different functions and routines, but it seems to take a few (3~4) seconds for the printarea to set. (the rest of my code takes < 1 sec /per page it makes).
I've tried copying and renaming the template (which bypasses the problem), but then i am limited to only copying 50 sheets in one excel session (MS capabilities ) , and need the program to be robust enough for that not to occur. Any suggestions?
My current code sets a string to the template application.pagesetup.printarea, and then sets my new sheet up to the string.
Code:
Sub testing()
Dim s As String
s = ActiveSheet.PageSetup.printArea
sheets("XXX").PageSetup.printArea = s
End Sub
Anyone run into this or have any solutions?
THANKS!