UpTheArgyle
Board Regular
- Joined
- Jan 12, 2006
- Messages
- 179
Hi
I have a pivot table I use daily - within the pivot I use date filter Between 2 dates.
The 2 dates I use are always in 2 separate cells on the same sheet.
Is it possible some code to pick the 2 dates up from the sheet?
Recording a macro (below) I get this but obviously the date are the dates I manually enter.
ActiveSheet.PivotTables("PivotTable5").PivotFields("calendar_date"). _
PivotFilters.Add Type:=xlDateBetween, Value1:="01/04/2011", Value2:= _
"24/06/2011"
Thanks
I have a pivot table I use daily - within the pivot I use date filter Between 2 dates.
The 2 dates I use are always in 2 separate cells on the same sheet.
Is it possible some code to pick the 2 dates up from the sheet?
Recording a macro (below) I get this but obviously the date are the dates I manually enter.
ActiveSheet.PivotTables("PivotTable5").PivotFields("calendar_date"). _
PivotFilters.Add Type:=xlDateBetween, Value1:="01/04/2011", Value2:= _
"24/06/2011"
Thanks