charlesutton
New Member
- Joined
- Sep 20, 2013
- Messages
- 4
Hi Forum,
Trying to create a combo box that auto filters a cube generated pivot table. My code is provided below, but breaks at line 4. For some reason, the PT filter can't read the cell value in A54. Any help is greatly appreciated.
Sub StateChangeTest()
ActiveSheet.PivotTables("StateDropsPivot").PivotFields( _
"[Location].[State Name].[State Name]").ClearAllFilters
ActiveSheet.PivotTables("StateDropsPivot").PivotFields( _ <-- Breaks Here
"[Location].[State Name].[State Name]").CurrentPage = _
Worksheets("QuitDataState").Range("A54").Value
End Sub
Trying to create a combo box that auto filters a cube generated pivot table. My code is provided below, but breaks at line 4. For some reason, the PT filter can't read the cell value in A54. Any help is greatly appreciated.
Sub StateChangeTest()
ActiveSheet.PivotTables("StateDropsPivot").PivotFields( _
"[Location].[State Name].[State Name]").ClearAllFilters
ActiveSheet.PivotTables("StateDropsPivot").PivotFields( _ <-- Breaks Here
"[Location].[State Name].[State Name]").CurrentPage = _
Worksheets("QuitDataState").Range("A54").Value
End Sub