I have been reading and trying and trying and reading and searching and I cant figure it out. I'm no coder, obv.
I made a checkbox form that when initially is checked, via macro it filters a pivot table and pivot chart.
I made a macro to undo this procedure once the box is unchecked but it can only run on its own, meaning i can not figure out how to combine the two macros to operate on this checkbox.
any help would be very much appreciated.
I made a checkbox form that when initially is checked, via macro it filters a pivot table and pivot chart.
I made a macro to undo this procedure once the box is unchecked but it can only run on its own, meaning i can not figure out how to combine the two macros to operate on this checkbox.
any help would be very much appreciated.
Code:
Sub CLICK4_TOP10on()'
' CLICK4_TOP10on Macro
'
'
Range("G13").Select
ActiveSheet.PivotTables("PivotTable5").PivotFields("CUSTOMER").PivotFilters. _
Add2 Type:=xlTopCount, DataField:=ActiveSheet.PivotTables("PivotTable5"). _
PivotFields("Sum of Amnt"), Value1:=10
End Sub
Sub CLICK4_TOP10off()
'
' CLICK4_TOP10off Macro
'
'
ActiveSheet.PivotTables("PivotTable5").PivotFields("CUSTOMER").ClearAllFilters
End Sub