Balajibenz
Board Regular
- Joined
- Nov 18, 2020
- Messages
- 80
- Office Version
- 2013
- Platform
- Windows
Hi People,
I have a data from A to X in sheet1 where there is weekending date in column "E" in format of mm/dd/yyyy. Can someone help me with VBA code to perform below steps.
1. I have sheet named Pivot which needs to be cleared and have new pivot tables with source data from sheet1
2. first pivot table should be for the current month.
3. then code has to look from current month to the months that are al ready completed and needs to have each pivot table for evry completed quarter.
4. if any other month if left between current month and completed quarter the that month needs to have seperate pivot table.
5. lets say we are in month of nov then at top we need to have pivot table for Nov and next to it it should be Oct pivot table. Under Nov pivot table we need to have Q3, Q2 and Q1. If we are in March then there should be 1 pivot table for each month.
below is snapshot of a pivot table as i am not able to upload a data sheet due to acess issues.
I have a data from A to X in sheet1 where there is weekending date in column "E" in format of mm/dd/yyyy. Can someone help me with VBA code to perform below steps.
1. I have sheet named Pivot which needs to be cleared and have new pivot tables with source data from sheet1
2. first pivot table should be for the current month.
3. then code has to look from current month to the months that are al ready completed and needs to have each pivot table for evry completed quarter.
4. if any other month if left between current month and completed quarter the that month needs to have seperate pivot table.
5. lets say we are in month of nov then at top we need to have pivot table for Nov and next to it it should be Oct pivot table. Under Nov pivot table we need to have Q3, Q2 and Q1. If we are in March then there should be 1 pivot table for each month.
below is snapshot of a pivot table as i am not able to upload a data sheet due to acess issues.
Timesheet Data_Oct'20.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | October'20 | ||||||
2 | CIO Cluster | (Multiple Items) | |||||
3 | ADM | Yes | |||||
4 | IT/Non-IT | IT | |||||
5 | Time Sheet Status | Invoiced | |||||
6 | Time Sheet End Date | (Multiple Items) | |||||
7 | |||||||
8 | Sum of Net Amount | Column Labels | |||||
9 | Row Labels | AD | AM | Others | Grand Total | ||
Onshore T&M spend-Summary |