1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| Public Sub RAZ()
'remise a zéro de la selection
With Selection
With .Borders(xlEdgeLeft)
.Color = RGB(96, 108, 149)
.LineStyle = xlContinuous
.Weight = xlMedium
End With
With .Borders(xlEdgeRight)
.Color = RGB(96, 108, 149)
.LineStyle = xlContinuous
.Weight = xlMedium
End With
With .Borders(xlInsideVertical)
.Color = RGB(96, 108, 149)
.LineStyle = xlContinuous
.Weight = xlMedium
End With
With .Borders(xlInsideHorizontal)
.LineStyle = xlNone 'pas de bordures intérieures horizontal
End With
.Interior.ColorIndex = 2 'passage en blanc du fond de la selection
.ClearContents 'effacer le contenu
End With
Rows("31:31").Interior.Color = RGB(165, 165, 165)
End Sub |