Hello, I hope someone out there can help me with this problem. I'm working on a fully automated very detailed report for work. Using VBA, the report accesses our mainframe, compiles a list of several thousand records, sorts them between 12 different tabs on a spreadsheet, identifies their revenue, ranks their importance based on 10 guidelines I provided it, builds 2 pivot tables and 1 pie chart per tab, a summary tab that provides totals for all other tabs, and a weekly trending tab that creates line graphs of the history of each tab. In addition to this, there's a "control" tab that uses active-X controllers to start the whole thing. The user then clicks the button on the control tab, waits around 30 minutes for the report to pull everything off the mainframe and compile/sort/calculate it all, and has a completed report.
The problem is...this file is now 52meg, and just having it open kills system performance on most machines, forget about actually RUNNING the thing. Does anyone have any ideas to help improve performance? Here's a list of what we're working with:
-15 tabs
1 control tab
12 department tabs
1 summary tab
1 weekly trending tab
-24 Pivot tables (2 on each department tab)
-12 pie charts (1 on each department tab)
-1 line graph (weekly trending tab)
-1 Active-X button that loads the mainframe data into memory and triggers the VBA script that performs all other functions.
-2 Modules containing the VBA scripts I wrote to sort everything out.
-average of about 3-4000 rows of data compiled between the 12 department tabs.
I can't get rid of any of the tabs, pivots, or charts...so about the only thing I can think of that may help is moving all the VBA code into the object for the control tab worksheet, and delete modules 1 & 2. Either that, or delete the control tab, put all the codes into module 1, and instruct the users to start a macro from the Tools menu instead of having a button to click that starts the thing. Will either of those ideas help much?
Any other ideas to clean this up? 52 meg is just not feasible for this beast.
Bookmarks