For i = 1 To 30
.Cells(2, i + 3) = Controls("TV" & i)
If .Cells(2, i + 3) > "" Then .Cells(2, i + 3) = Replace(.Cells(2, i + 3), ".", ",") * 1 ' remplace les . par des ,& multiplie par 1
If .Cells(2, i + 3) > "" Then .Cells(2, i + 3) = .Cells(2, i + 3) * 1: .Cells(2, i + 3).NumberFormat = "0.000" 'met le formet 0.000
If Controls("ch" & i) = True Then
.Cells(2, i + 3).Interior.Color = RGB(192, 255, 96)
Sheets("XXX").Cells(2, i + 3) = "V"
Else
Sheets("XXX").Cells(2, i + 3) = "B"
End If
Next