Hello,
I am trying to create a macro that will delete all rows of data does not have an anniversary date in the current month.
For example, I would like the macro to search through my sheet to find the last row of data and then delete any row that does not have an anniversary date in the current month(May). Then be able to do the same thing next month, delete any row that does not have an anniversary date in the month of June and so on.
I am trying to create a macro that will delete all rows of data does not have an anniversary date in the current month.
For example, I would like the macro to search through my sheet to find the last row of data and then delete any row that does not have an anniversary date in the current month(May). Then be able to do the same thing next month, delete any row that does not have an anniversary date in the month of June and so on.
Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | Employee ID | Anniversary Date | ||
2 | 1 | 4/1/2001 | ||
3 | 2 | 12/12/1998 | ||
4 | 3 | 6/15/2004 | ||
5 | 4 | 9/15/1994 | ||
6 | 5 | 5/15/2015 | ||
7 | 6 | 3/20/2009 | ||
8 | 7 | 5/27/2019 | ||
9 | 8 | 5/1/2021 | ||
10 | 9 | 10/13/2013 | ||
11 | 10 | 6/4/2004 | ||
Sheet1 |