voila
c'est comma barakafrite
Private Sub QUITTER_Click()
End 'quitter le userform
End Sub
Private Sub REINITIALISER_Click()
TextBox1.Value = "" 'Vider les cases de données
TextBox2.Value = ""
TextBox3.Value = ""
TextBox4.Value = ""
TextBox5.Value = ""
TextBox6.Value = ""
TextBox7.Value = ""
TextBox8.Value = ""
TextBox9.Value = ""
TextBox10.Value = ""
End Sub
Private Sub VALIDER_Click()
Dim capa As Double
TextBox1.Value = Format(TextBox1.Value, " #,##0")
'Calcul de conversion
If TextBox1 = "" Then
MsgBox ("Veuillez rentrer une capacité")
Else
TextBox2.Value = TextBox1.Value / 32
TextBox3.Value = TextBox1.Value / 6000
TextBox4.Value = TextBox1.Value / 3500
TextBox5.Value = TextBox1.Value / 13500
TextBox6.Value = TextBox1.Value / 700000
TextBox7.Value = TextBox1.Value / 700000
TextBox8.Value = TextBox1.Value / 4700000
TextBox9.Value = TextBox1.Value / 32000000
TextBox10.Value = TextBox1.Value / 1000000000
'Mise en forme avec séparateur de millier et 5 chiffres après la virgule
TextBox2.Value = Format(TextBox2.Value, "#,##0.00000")
TextBox3.Value = Format(TextBox3.Value, "#,##0.00000")
TextBox4.Value = Format(TextBox4.Value, "#,##0.00000")
TextBox5.Value = Format(TextBox5.Value, "#,##0.00000")
TextBox6.Value = Format(TextBox6.Value, "#,##0.00000")
TextBox7.Value = Format(TextBox7.Value, "#,##0.00000")
TextBox8.Value = Format(TextBox8.Value, "#,##0.00000")
TextBox9.Value = Format(TextBox9.Value, "#,##0.00000")
TextBox10.Value = Format(TextBox10.Value, "#,##0.00000")
End If
End Sub