I have a Workbook called "Workbook1" that contains a number of data sheets.
Workbook1 contains a subroutine that produces a report consisting of 40 worksheets, produced one sheet at a time.
After each report worksheet is produced in Workbook1 it is moved by the subroutine to a report workbook called "Workbook2".
Everything works fine with the exception that every time each of the 40 report worksheets is moved to Workbook2, Workbook2 is activated and I need to reactivate Workbook1 to continue with the VBA code execution.
This rapid switching between active workbooks causes the computer monitor to flicker back and forth between displaying the active worksheet in Workbook1 and the active worksheet in Workbook2. This is not good from the user experience perspective.
Is there a way in excel VBA to move worksheets from one workbook to a second workbook without activating the second workbook? Any other solutions to this problem???
Thanks for any info. Karl
Bookmarks