Hi Andy,
I just noticed that another macro I have in my workbook looks like it has been affected by the existance of the data table and the contour graphs. That is, when I hit the 'update' button on the 'BBG Raw Data' tab, calculation mode switches from 'automatic except data tables' to 'automatic.' This particular macro is not supposed to update data tables, but for some reason it is; it is simply trying to update data from one sheet to another. I tried to store the current calculation setting in a variable, lngCalcMode, as you had done prior to setting the calculation mode to Manual, but it still is updating the data tables when I hit update. The code is as follows:
Sub Dynamic_Table()
Dim RowC, Colc As Integer
Dim CRow, CCol As Integer
Dim i As Integer
Dim SupName As String
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
'Delete the Data from "Data for Pivot"
With Sheets("Data for Pivot")
.Range("A3", .Range("A3").End(xlDown)).Clear
.Range("A3", .Range("A3").End(xlDown)).NumberFormat = "dd/mm/yyyy hh:mm"
End With
' Dynamically count Data in BBG Raw Data sheet
With Sheets("BBG Raw Data")
.Range("A4", .Range("A4").End(xlDown)).Copy
Sheets("Data for Pivot").Range("A3").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End With
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
' Also update the chart
X_Axis_Scale
End Sub
How would this particular macro need to change in order to run so that when I hit 'update', it doesn't update the data tables?
Thanks,
Maani
Bookmarks