Just to clean up your Macro. I haven't looked at your upload yet.
Option Explicit Dim ProductPivotSheets As Variant Sub RunOnce() 'This sub Initializes all global variables. 'run this before any other subs ProductPivotSheets = Array("Widgets", "Cronology", "Department", "Managers", "Engineers", "Notes") End Sub Private Sub ComboBox1_Change() Dim CPName As String Dim i As Long CPName = Me.ComboBox1.Value Application.ScreenUpdating = False For i = LBound(ProductPivotSheets) To UBound(ProductPivotSheets) Sheets(ProductPivotSheets(i)).PivotTables(ProductPivotSheets(i)).PivotFields("Product").CurrentPage = CPName Next i Sheets("DB_Joined").Visible = True Application.ScreenUpdating = True '<------------ Important: Screen Updating is persistant End Sub




Reply With Quote