Salut V Tec,
voici une solution dans un fichier-exemple.
Le mot caché est en [A1], la date butoir en [B1] :
- changer cette date cache [A1] en réglant la couleur de fonte sur la couleur de fond et en rendant sa sélection impossible ;
Private Sub Worksheet_Change(ByVal Target As Range)
'
If Not Intersect(Target, [B1]) Is Nothing Then
If CDate([B1]) > Date Then
With ActiveSheet
.Unprotect
.Range("A1").Font.Color = IIf(.Range("A1").Interior.Color = xlNone, 2, .Range("A1").Interior.Color)
.Range("A1").Locked = True
.EnableSelection = xlUnlockedCells
.Protect
End With
End If
End If
'
End Sub
- [A1] est déprotégée à la date voulue.
Private Sub Workbook_Open()
'
With Worksheets("Accueil")
If CDate(.[B1]) >= Date Then
.Unprotect
.Range("A1").Locked = False
.Range("A1").Font.ColorIndex = 1
End If
End With
'
End Sub
A tester...
A+