Private Sub Bout_Répart_Charges_Click()
Dim calcul As Single
If TextBox202.Value = "" Or TextBox203 = "" Then
MsgBox "Les deux factures doivent être encodées !"
Exit Sub
Else
For lig = 1 To 6
If Controls("TextBox" & lig) <> "" Then
Me("TextBox" & lig * 10 + 2).Text = (CDbl(TextBox202.Text) / CDbl(TextBox200.Text)) * CDbl(Me("Textbox" & lig * 10).Text)
ERREUR--> Me("Textbox" & lig * 10 + 2).Text = Round(CDbl("Textbox" & lig * 10 + 2), 2)
End If
Next
End If
End Sub