Hey guys,
I'm trying to create a macro to clear the cells of past dates. Imagine you have a table with all the different dates and number for these date: once the date is past the current date indicated in a cell, I would like all the past cell date to clear (as in the corresponding number and not the date) once the "today date" is updated
For now I have this: worksheets("Sheet1").Range("C4,D4,E4,F4,G4,H4").ClearContents
but I don't know how to link it to the current cell date and the table. I hope I'm making myself clear
I'm trying to create a macro to clear the cells of past dates. Imagine you have a table with all the different dates and number for these date: once the date is past the current date indicated in a cell, I would like all the past cell date to clear (as in the corresponding number and not the date) once the "today date" is updated
For now I have this: worksheets("Sheet1").Range("C4,D4,E4,F4,G4,H4").ClearContents
but I don't know how to link it to the current cell date and the table. I hope I'm making myself clear