Mohit53787
New Member
- Joined
- Feb 14, 2024
- Messages
- 4
- Office Version
- 365
- 2016
- Platform
- Windows
Hello Experts,
I am trying to build a macro which will help me to delete the rows which contains the data of previous week.
I want create a macro as follows:
1. Open Excel sheets based on the calender week.
Example: CW06_Report_teamA
CW06_Report_teamB
CW06_Report_teamC, and so on.... (around 30 teams = 30 Excels)
2. In Sheet1 there will be a summarized data of all the previous weeks.
I want to delete the data of all the old calender weeks and show the data of just previous week.
For example today is 14.02. and the previous Calender week was 6
(the exact cell number and range is unknown, because each week the data piles up.)
(There will be multiple tabs. I want to delete the data just from 1st tab "Sheet1")
3. Save and close the excels.
It would be a great help, if someone could help me with the code.
Thanks in advance!
I am trying to build a macro which will help me to delete the rows which contains the data of previous week.
I want create a macro as follows:
1. Open Excel sheets based on the calender week.
Example: CW06_Report_teamA
CW06_Report_teamB
CW06_Report_teamC, and so on.... (around 30 teams = 30 Excels)
2. In Sheet1 there will be a summarized data of all the previous weeks.
I want to delete the data of all the old calender weeks and show the data of just previous week.
For example today is 14.02. and the previous Calender week was 6
(the exact cell number and range is unknown, because each week the data piles up.)
(There will be multiple tabs. I want to delete the data just from 1st tab "Sheet1")
3. Save and close the excels.
It would be a great help, if someone could help me with the code.
Thanks in advance!