Sub Nouveau_relevé()
'pour onglet Prog+ sert à l'horloge doseur
Columns("X:X").Insert Shift:=xlToRight
Range("X2").Formula = "=TODAY()"
Columns("X:X").ColumnWidth = 10
Range("X11").Formula = "=SUM(R[-8]C:R[-2]C)"
Range("X3:X10").NumberFormat = "#,##0"
Range("X11").NumberFormat = "0"" Kg"""
Range("X3:X10").Select
With Selection.Interior
.ColorIndex = 36
.Pattern = xlSolid
End With
Range("V2:X10,X11").Select
Range("X11").Activate
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Range("X3").Select
End Sub