UpTheArgyle
Board Regular
- Joined
- Jan 12, 2006
- Messages
- 179
Has anyone got any idea why this does not work?
I am trying automated "date's between" in a pivot table via a command button on a userform
ActiveSheet.PivotTables("PivotTable5").PivotFields("calendar_date"). _
PivotFilters.Add Type:=xlDateBetween, value1:=Range("B1"), Value2:=Range("B2")
Run Time Error 1004 - "The date you entered is not a valid date"
In Cells B1 & B2 is this format 10/02/2011 - both cells are formatted as a date
any ideas?
I am trying automated "date's between" in a pivot table via a command button on a userform
ActiveSheet.PivotTables("PivotTable5").PivotFields("calendar_date"). _
PivotFilters.Add Type:=xlDateBetween, value1:=Range("B1"), Value2:=Range("B2")
Run Time Error 1004 - "The date you entered is not a valid date"
In Cells B1 & B2 is this format 10/02/2011 - both cells are formatted as a date
any ideas?