hellfire45
Active Member
- Joined
- Jun 7, 2014
- Messages
- 464
Hi guys. I have a monster size automation I'm building and I need to ensure at certain times that the entire workbook is calculated and/or various worksheets are calculated before the VBA proceeds.
Is there some vba code I can add to tell the workbook to check to see if the entire workbook is calculated and if not, recalculate it until it is in a fully calculated state?
Likewise, a similar this for individual worksheets? I found the code below in a different workbook but I'm not sure what this does.
Thanks so much!
Is there some vba code I can add to tell the workbook to check to see if the entire workbook is calculated and if not, recalculate it until it is in a fully calculated state?
Likewise, a similar this for individual worksheets? I found the code below in a different workbook but I'm not sure what this does.
Code:
If Not Application.CalculationState = xlDone Then DoEvents
End If
Thanks so much!
Last edited: