1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Sub bordure()
With Sheets("Feuil1")
L = .Range("A65536").End(xlUp).Row
'Formatage du tableau
.Cells(L, "A").Borders(xlEdgeLeft).LineStyle = xlContinuous
.Range(.Cells(L, "I"), .Cells(L, "P")).Borders(xlEdgeLeft).LineStyle = xlContinuous
.Range(.Cells(L, "A"), .Cells(L, "G")).Borders(xlEdgeTop).LineStyle = xlNone
.Range(.Cells(L, "I"), .Cells(L, "J")).Borders(xlEdgeTop).LineStyle = xlNone
.Range(.Cells(L, "A"), .Cells(L, "J")).Borders(xlEdgeBottom).LineStyle = xlContinuous
.Range(.Cells(L, "I"), .Cells(L, "J")).Borders(xlEdgeBottom).LineStyle = xlContinuous
.Range(.Cells(L, "D"), .Cells(L, "H")).Borders(xlInsideVertical).LineStyle = xlNone
.Range(.Cells(L, "D"), .Cells(L, "K")).Borders(xlInsideVertical).LineStyle = xlContinuous
.Range(.Cells(L, "I"), .Cells(L, "J")).VerticalAlignment = xlCenter
.Range(.Cells(L, "D"), .Cells(L, "G")).VerticalAlignment = xlCenter
End With
End Sub |
Partager