From B4:R400 i have a range of values, every row B:R is related to a specific date in D, for example B4:R4 is related to date D4. I need a VBA code to sort data, after putting a start date in T4 and a final date in U4, the code must identify those dates in collumn D and their related cells and then clean everything else, from B4:R400?
For example:
B4=993 C4=CAR D4=04/01/2019 E4=YESTERDAY F4=TOO ...
B5=6 C5=BIKE D5=05/01/2019 E5=NOW F5=AGAIN ...
B6=7 C6=BOAT D6=06/01/2019 E6=TOMOROW F6=AGAIN...
B7=98 C7=TRUCK D7=07/01/2019 E7=NOW F7=REALITY ...
B8=1 C8=SPACESHIP D8=08/01/2019 E8=YESTERDAY F8=TOO ...
B9=4 C9=MACHINE D9=09/01/2019 E9=NOW F9=AGAIN ...
Start date T4=06/01/2019 U4= 08/01/2019
B6=7 C6=BOAT D6=06/01/2019 E6=TOMOROW F6=AGAIN...
B7=98 C7=TRUCK D7=07/01/2019 E7=NOW F7=REALITY ...
B8=1 C8=SPACESHIP D8=08/01/2019 E8=YESTERDAY F8=TOO ...
The other data was cleared, only B6:F8 remained. Only the cells content must be cleared.
Bookmarks