Hi guys,
First of all thank you for all your thread who helped me a lot. But now I'd like to do some improvement in my workbook because I loose a big amount of time calculating my workbook.
Let me explain:
I have a Workbook with multiple sheets (some of them are only for database, but 4 of them are for a simulation). I have a Dashboard to see the result of my simulation (I have 3 dashboards actually, in the same sheet, to do A/B/C tests). I have a button for each dashboard to run the simulation and then get the data.
The problem is, when I press F9 the simulation take no more than a minute in the worst case, and around 10 minute by using VBA. Here is my code of one of my button:
I basically calculate my 4 sheets row by row (I actually didn't find a way to calculate de 4 sheets at the same time, so to not loose references I had to calculate it this way. If you have a better idea I take it) and then calculate my dashboard, here "Player1".Please Login or Register to view this content.
I tried different things to speed up the calculation (remove Indirect() function as much as I can, mostly by making 4 If statement in a row, set ScreenUpdating to False, remove every conditional formatting...) but my calculation is still slow.
Some time (seems random but now I don't see it anymore) the calculation take less than 2 minutes.
Each sheet has 1100 rows and a bit less than 400 columns, which is not this big.
Hope you can help me. Unfortunately I can really share you the document, but I will answer any questions.
Thank you.
Edit : And I have some array formula mostly for IndexMatch function. I don't know if it's heavy or not.
Bookmarks