We value your feedback.
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.
|I need a User Form to Input Data appear when a cell is clicked on||34||42|
|Count number of rows containing same number is Column A||8||33|
|How to loop thru all queries and find which one's were affected by a table change.||47||39|