Sub Couleurs()
Dim i As Long
Dim j As Long
For i = 2 to 366 Step 7
For j = 3 To 33 Step 3
Select Case Application.WorksheetFunction.Weekday(Cells(i, j), 2)
If Cells(i, j).Value <> "" Then
Case 1
' Lundis
Cells(i, j).Interior.Color = RGB(255, 0, 0)
Case 2
' Mardis
Cells(i, j).Interior.Color = RGB(0, 255, 0)
Case 3
' Mercredis
Cells(i, j).Interior.Color = RGB(0, 0, 255)
Case 4
' Jeudis
Cells(i, j).Interior.Color = RGB(125, 125, 125)
Case 5
' Vendredis
Cells(i, j).Interior.Color = RGB(50, 50, 50)
Case 6
' Samedis
Cells(i, j).Interior.Color = RGB(120, 120, 120)
Case 7
' Dimanches
Cells(i, j).Interior.Color = RGB(255, 255, 255)
End If
End Select
Next j
Next i
End Sub