Option Explicit
Sub MFPerso()
Dim Sht As Worksheet, derlig As Long, x As Long, i As Long, tbl
Set Sht = Sheets("BD_Famas")
With Sht
derlig = .Range("a" & Rows.Count).End(xlUp).Row
.Range("a1:m1").Interior.Color = RGB(21, 96, 189)
.Range("a1:m1").Font.Color = RGB(223, 242, 255)
.Range("a2:m" & derlig).Interior.Color = RGB(197, 217, 241)
For i = 2 To derlig Step 2
.Range(.Cells(i, 1), .Cells(i, 13)).Interior.Color = RGB(242, 242, 242)
Next i
'Ici j'ai mis +1, car elle ne prend pas en compte la dernière ligne ???
tbl = .Range("k2:k" & derlig + 1)
For x = 2 To UBound(tbl)
If .Cells(x, "K") > Date Then
.Cells(x, "K").Interior.Color = vbGreen
Else
.Cells(x, "K").Interior.Color = vbRed
.Cells(x, "K").Font.Color = vbWhite
End If
Next x
End With
End Sub