hello 
My name is Tamar - i want your help with vba code i using in my ComboBox as a filter in my pivot table for date ranges
I recorded a macro but i can't seem to apply that to a simple vba code
I also upload my file
i hope you could help me
some of the data is in hebrew
Thanks!!
Tamar
My name is Tamar - i want your help with vba code i using in my ComboBox as a filter in my pivot table for date ranges
I recorded a macro but i can't seem to apply that to a simple vba code
Code:
Sub Macro1()
'
' Macro1 Macro
'
ActiveSheet.PivotTables("PivotTable1").PivotFields("Dates").CurrentPage = _
"(All)"
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Dates")
.PivotItems("1/1/2015").Visible = False
.PivotItems("1/2/2015").Visible = False
.PivotItems("1/3/2015").Visible = False
.PivotItems("1/10/2015").Visible = False
End With
ActiveSheet.PivotTables("PivotTable1").PivotFields("Dates"). _
EnableMultiplePageItems = True
Range("I15").Select
End Sub
I also upload my file
i hope you could help me
some of the data is in hebrew
Thanks!!
Tamar
Attachments
Last edited by a moderator: