1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Sub Valider()
With ActiveSheet.UsedRange
col = .Columns.Count - .Column
End With
Range(Cells(8, col - 1), Cells(19, col + 1)).Interior.ColorIndex = 15
Range(Cells(22, col - 1), Cells(36, col + 1)).Interior.ColorIndex = 15
Range(Cells(37, col - 1), Cells(40, col + 1)).Interior.ColorIndex = vbBlack
Range(Cells(41, col - 1), Cells(52, col + 1)).Interior.ColorIndex = 15
Range(Cells(55, col - 1), Cells(68, col + 1)).Interior.ColorIndex = 15
Range(Cells(69, col - 1), Cells(72, col + 1)).Interior.ColorIndex = vbBlack
'ajout du trait en ligne 7
With Range(Cells(7, col - 1), Cells(7, col + 1)).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
End Sub |
Partager