Skinnymermaid
New Member
- Joined
- Sep 30, 2009
- Messages
- 2
Hi,
So here's the story: I have 24 workbooks, with 12 sheets in each workbook. I have a macro written for EACH sheet in EACH workbook. I also have code written in the first module of EACH workbook. These 24 workbooks are in a folder.
I then have another workbook called "Export" which is not in the same folder as the workbooks. I have one macro in the module section of the "Export" workbook which accesses the folder with the 24 workbooks, copies the data from EACH sheet of EACH workbook and then pastes the data into "Export".
My problem is that each time the macro in "Export" opens each workbook it opens each macro in each workbook and it really slows things down (since EACH sheet of EACH workbook contains a macro + a macro in the module of EACH workbook). That's a lot of macros to open. Is there any way it doesn't have to open all these macros so the code can run faster?
Thanks for any help!!!
So here's the story: I have 24 workbooks, with 12 sheets in each workbook. I have a macro written for EACH sheet in EACH workbook. I also have code written in the first module of EACH workbook. These 24 workbooks are in a folder.
I then have another workbook called "Export" which is not in the same folder as the workbooks. I have one macro in the module section of the "Export" workbook which accesses the folder with the 24 workbooks, copies the data from EACH sheet of EACH workbook and then pastes the data into "Export".
My problem is that each time the macro in "Export" opens each workbook it opens each macro in each workbook and it really slows things down (since EACH sheet of EACH workbook contains a macro + a macro in the module of EACH workbook). That's a lot of macros to open. Is there any way it doesn't have to open all these macros so the code can run faster?
Thanks for any help!!!