Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub PivotDefault() Dim PvtTbl As PivotTable Dim WeekStart As Integer Dim WeekEnd As Integer Dim Area As String Set PvtTbl = Worksheets("PivotTable").PivotTables("PivotByArea") PvtTbl.ClearAllFilters WeekStart = Worksheets("Misc").Range("D2") WeekEnd = Worksheets("Misc").Range("D3") Area = Worksheets("Misc").Range("G1") PvtTbl.PivotFields("AreaDescription").PivotFilters.Add Type:=xlCaptionEquals, _ Value1:=Area PvtTbl.PivotFields("Week").PivotFilters.Add Type:=xlValueIsBetween, _ Value1:=WeekStart, Value2:=WeekEnd End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.