Balajibenz
Board Regular
- Joined
- Nov 18, 2020
- Messages
- 80
- Office Version
- 2013
- Platform
- Windows
I have below lines of code whare i am trying to group the dates in to month. below code is not grouping and at the same time not throwing any error.
can someone help me with this.
With ActiveSheet.PivotTables("Report").PivotFields("WEEK_END_DATE")
.Orientation = xlColumnField
.Position = 1
End With
'ActiveSheet.PivotTables("Report").PivotFields("WEEK_END_DATE").AutoGroup
WEEK_END_DATE column is formatted in "dd/mm/yyyy". I am able to group it manually in pivot.
can someone help me with this.
With ActiveSheet.PivotTables("Report").PivotFields("WEEK_END_DATE")
.Orientation = xlColumnField
.Position = 1
End With
'ActiveSheet.PivotTables("Report").PivotFields("WEEK_END_DATE").AutoGroup
WEEK_END_DATE column is formatted in "dd/mm/yyyy". I am able to group it manually in pivot.