Hi,
I have a range in sheet1 (range J2:J10) that has data validation, so each cell in this range has a dropdown which has 4 different text options: not started, started, ongoing, complete.
I would like to have a macro that if dropdown selection (in range J2:J10) is either 'started' or 'ongoing' then the corresponding cell in range N2:N10 is filled in with today's date.
For example if one selects 'started' or 'ongoing' in cell J4 then cell N4 will be filled in with today's date.
If one selects 'started' or 'ongoing' in cell J8 then cell N8 will be filled in with today's date and so on.
It is important that today's date that appears in range N2:N10 is a hardcoded date that does not change the following day (so it should not be formula (=today()).
Also if text not 'started' or 'complete' is selected in any cell in range J2:J10 then any text in corresponding cell in range N2:N10 must be deleted (so if there was a date this should be deleted).
What code can I use to do this?
Thanks,
Nix
I have a range in sheet1 (range J2:J10) that has data validation, so each cell in this range has a dropdown which has 4 different text options: not started, started, ongoing, complete.
I would like to have a macro that if dropdown selection (in range J2:J10) is either 'started' or 'ongoing' then the corresponding cell in range N2:N10 is filled in with today's date.
For example if one selects 'started' or 'ongoing' in cell J4 then cell N4 will be filled in with today's date.
If one selects 'started' or 'ongoing' in cell J8 then cell N8 will be filled in with today's date and so on.
It is important that today's date that appears in range N2:N10 is a hardcoded date that does not change the following day (so it should not be formula (=today()).
Also if text not 'started' or 'complete' is selected in any cell in range J2:J10 then any text in corresponding cell in range N2:N10 must be deleted (so if there was a date this should be deleted).
What code can I use to do this?
Thanks,
Nix