VBAProIWish
Well-known Member
- Joined
- Jul 6, 2009
- Messages
- 1,027
- Office Version
- 365
- Platform
- Windows
Hello All,
I would like to create a macro that deletes all rows in "Sheet1", Column C that have a date prior to the date in the last cell (bottommost) in "Sheet2" Column C.
Note that I don't want a popup box asking for a date. Instead, I want the date to be based on the last cell (bottommost) in "Sheet2", Column C.
Here's the laymen's-term code version of what I need
1. Select "Sheet2"
2. Go to the last cell (row) with data in column C
3. "Remember" that date
4. Select "Sheet1"
5. Delete any rows in "Sheet 1", Column C that have a date prior to the "Remembered" date from "Sheet2", Column C
Thanks much!
I would like to create a macro that deletes all rows in "Sheet1", Column C that have a date prior to the date in the last cell (bottommost) in "Sheet2" Column C.
Note that I don't want a popup box asking for a date. Instead, I want the date to be based on the last cell (bottommost) in "Sheet2", Column C.
Here's the laymen's-term code version of what I need
1. Select "Sheet2"
2. Go to the last cell (row) with data in column C
3. "Remember" that date
4. Select "Sheet1"
5. Delete any rows in "Sheet 1", Column C that have a date prior to the "Remembered" date from "Sheet2", Column C
Thanks much!