CDelSignore
New Member
- Joined
- Mar 1, 2016
- Messages
- 18
I'm using Excel 2010 and trying to one-button automate updating a spreadsheet. The button should refresh two tables from outside (networked) workbooks and then calculate worksheets in the open workbook, in a specified order.
Here is my macro the button is linked to:
At this time, the two tables refresh as intended, but none of the worksheets calculate. The calculation sheet updates last lines of data on the Data and OEE tables, and lists out arrays that the Production Number and Production worksheets use as part of Indirect functions. The messageboxes come up, but the worksheets don't calculate. The order of calculation is important.
Any idea what's going wrong?
Here is my macro the button is linked to:
Sub Workbook_UpdateAll()
ActiveWorkbook.RefreshAll
MsgBox "Done Refreshing Data and OEE Sheets"
ActiveWorkbook.Worksheets("Calculation Sheet").Calculate
MsgBox "Done Calculating Calc Sheet"
ActiveWorkbook.Worksheets("Production Numbers").Calculate
MsgBox "Done Calculating Production Numbers Sheet"
ActiveWorkbook.Worksheets("Production").Calculate
MsgBox "Done Calculating Production Sheet"
End Sub
At this time, the two tables refresh as intended, but none of the worksheets calculate. The calculation sheet updates last lines of data on the Data and OEE tables, and lists out arrays that the Production Number and Production worksheets use as part of Indirect functions. The messageboxes come up, but the worksheets don't calculate. The order of calculation is important.
Any idea what's going wrong?
Last edited: