Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range, pl As Range, adr1 As String
If Cells(Target.Row, 2) = "Nb de décimales" Then
If IsNumeric(Target.Value) Then
Set pl = Cells(10, Target.Column).Resize(Cells(Rows.Count, 2).End(xlUp).Row - 9)
If Target = 0 Then pl.NumberFormat = "0" Else pl.NumberFormat = "0." & Application.Rept("0", Target.Value)
Set c = Columns(2).Find("CV acceptation CQI", LookIn:=xlValues, lookat:=xlWhole)
If Not c Is Nothing Then
adr1 = c.Address
Do
Rows(c.Row).NumberFormat = "0.0"
Set c = Cells.FindNext(c)
Loop While c.Address <> adr1 And Not c Is Nothing
End If
End If
End If
End Sub