hi guys,
i am currently trying to protect our racing teams spreadsheet. It contains a drop down list of 18 race tracks on one sheet, which has the 18 tracks listed on another worksheet.
So far what ive been able to do is once that race has completed it gets removed from the list using the IF function. Next to each track name it has the date of the race so if todays date is greater than this the cell will show "" therefore nothing will show up.
However the only trouble with that is if i were to change my system date back the track reappears in this list.
I would like the following, but please note that the track list i want to clear has to be protected, that way users of the team cant just enter the tracks back in.
here is the code i have in the sheet for now.
this code actually works to some extent but only when the sheet is unprotected and i click any of the other cells on that same sheet. This sheet will be protected and hidden. I have tried tried changing my system date forward, then back again but it didnt clear the contents of the track list until i went to the sheet and it was unlocked.![]()
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Range("A8").Value = "" Then Range("C8").ClearContents If Range("A9").Value = "" Then Range("C9").ClearContents If Range("A10").Value = "" Then Range("C10").ClearContents If Range("A11").Value = "" Then Range("C11").ClearContents If Range("A12").Value = "" Then Range("C12").ClearContents If Range("A13").Value = "" Then Range("C13").ClearContents If Range("A14").Value = "" Then Range("C14").ClearContents If Range("A15").Value = "" Then Range("C15").ClearContents If Range("A16").Value = "" Then Range("C16").ClearContents If Range("A17").Value = "" Then Range("C17").ClearContents If Range("A18").Value = "" Then Range("C18").ClearContents If Range("A19").Value = "" Then Range("C19").ClearContents If Range("A20").Value = "" Then Range("C20").ClearContents If Range("A21").Value = "" Then Range("C21").ClearContents If Range("A22").Value = "" Then Range("C22").ClearContents If Range("A23").Value = "" Then Range("C23").ClearContents If Range("A24").Value = "" Then Range("C24").ClearContents If Range("A25").Value = "" Then Range("C25").ClearContents End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End Sub
cells A8:A25 is where the IF function is located. B8:B25 is the date those races scheduled. C8:C25 is the list of tracks i want to clear once the race is over.
Please note i dont want to clear the range of cells C8:C25 all at the same time, only clear cell C8 when A8 is blank etc
Any help on this is appreciated.
Thanks,
Andrew
Bookmarks