Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Dim Champ As Range, V As Variant, MP As String
Set Champ = Sh.[B5:D22,B25:D42,B45:D62]
Set Target = Intersect(Champ, Target)
If Target Is Nothing Then Exit Sub
V = Sh.Cells(((Target.Row - 5) \ 20) * 20 + 22, "D").Value
If V <> "" And Date > V Then
MP = InputBox("mot passe?")
If MP <> "toto" Then Sh.[a1].Select
End If
End Sub