Sub bordure()
Dim L As Long
Dim lig As Integer
With Sheets("commande")
L = .Range("A65536").End(xlUp).Row
If L < 12 Then lig = 12
'Formatage du tableau
.Cells(12, "A").Borders(xlEdgeLeft).LineStyle = xlContinuous
.Range(.Cells(12, "I"), .Cells(L, "P")).Borders(xlEdgeLeft).LineStyle = xlContinuous
.Range(.Cells(12, "I"), .Cells(L, "P")).Borders(xlEdgeLeft).LineStyle = xlContinuous
.Range(.Cells(12, "A"), .Cells(L, "G")).Borders(xlEdgeTop).LineStyle = xlNone
.Range(.Cells(12, "I"), .Cells(L, "J")).Borders(xlEdgeTop).LineStyle = xlNone
.Range(.Cells(12, "A"), .Cells(L, "J")).Borders(xlEdgeBottom).LineStyle = xlContinuous
.Range(.Cells(12, "I"), .Cells(L, "J")).Borders(xlEdgeBottom).LineStyle = xlContinuous
.Range(.Cells(12, "D"), .Cells(L, "H")).Borders(xlInsideVertical).LineStyle = xlNone
.Range(.Cells(12, "C"), .Cells(L, "K")).Borders(xlInsideVertical).LineStyle = xlContinuous
.Range(.Cells(12, "I"), .Cells(L, "J")).VerticalAlignment = xlCenter
.Range(.Cells(12, "D"), .Cells(L, "G")).VerticalAlignment = xlCenter
.Range("A12:J12").Borders(xlEdgeTop).LineStyle = xlContinuous
End With
End Sub