Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim vCol, N_NEM$
Dim JourCible As Date
Dim ColOffset As Integer
Application.ScreenUpdating = False
If Not Intersect(Target(1, 1), [C5,K5,S5,AA5,AI5,AQ5,C14,K14,S14,AA14,AI14,AQ14]) Is Nothing Then
[B24] = Target(1, 1)
End If
JourCible = Target(1, 1).Value
vCol = Array(2, 10, 18, 26, 34, 42)
If Target.Count > 1 Then Exit Sub
If Target.Row >= 7 And Target.Row <= 21 Then
ck = Target.Column Mod 53
If Not IsError(Application.Match(ck, vCol, 0)) Then Exit Sub
On Error Resume Next
N_SEM = CStr(Application.IsoWeekNum(Target))
Worksheets(N_SEM).Visible = True
Worksheets(N_SEM).Activate
ColOffset = Weekday(JourCible, vbMonday)
ActiveSheet.Range("B2").Offset(0, (ColOffset - 1) * 8).Select
Else
Exit Sub
End If
Application.ScreenUpdating = True
End Sub