Arrondi sup VBA

Bonjour, J

Je réalise une division entre deux textbox, et je voudrais que le résultat (dans la 3ème textbox) soit arrondi au chiffre supérieur.

Pouvez vous m'aider svp ?

Merci

Bonjour

Essaie ça :

Private Sub TextBox1_Change()
    If TextBox2 <> "" Then
        TextBox3 = Application.RoundUp(Val(TextBox1) / Val(TextBox2), 0)
    End If
End Sub

Private Sub TextBox2_Change()
    If TextBox1 <> "" Then
        TextBox3 = Application.RoundUp(Val(TextBox1) / Val(TextBox2), 0)
    End If
End Sub

Bye !

Rechercher des sujets similaires à "arrondi sup vba"