Sub couleurs_B()
Dim i&, lig&, col&
lig = 2: col = 2
For i = 1 To 56
With Cells(lig, col)
.Value = i
.Interior.ColorIndex = i
.Font.Color = vbWhite
.Font.Bold = True
.HorizontalAlignment = xlCenter
End With
If i > 1 And i Mod 8 = 0 Then
col = col + 1
lig = 2
Else
lig = lig + 1
End If
Next
[B2].CurrentRegion.Borders.Value = 1
End Sub