I need to "Calculate" several Excel Worksheets within Access VBA. I can Calculate individual worksheets as follows:
Dim WkBk as Excel.Workbook
WkBk.Sheets("Sheet1"
.Calculate
WkBk.Sheets("Sheet2"
.Calculate
But I cannot figure out how to calculate the entire workbook with a single command. I tried things like:
WkBk.Calculate
But that gives me an error message. Is there a way to calculate an entire Excel Workbook with a single statement?
Thanks much for any help.
Jim
Dim WkBk as Excel.Workbook
WkBk.Sheets("Sheet1"
WkBk.Sheets("Sheet2"
But I cannot figure out how to calculate the entire workbook with a single command. I tried things like:
WkBk.Calculate
But that gives me an error message. Is there a way to calculate an entire Excel Workbook with a single statement?
Thanks much for any help.
Jim