Re : Racine carré dans formule mathématique
Bonsoir Pascal,
Ca ne marche pas... Le problème ne vient t'il pas de la partie en gras ?
Private Sub CommandButton32_Click()
Dim val1 As Double
Dim val2 As Double
Dim val3 As Double
Dim dl1 As Integer
'calcul de la hauteur moyenne de saut
If IsNumeric(TextBox65.Value) And IsNumeric(TextBox66.Value) And IsNumeric(TextBox67.Value) Then
val1 = Application.Average(CDbl(TextBox65.Value), CDbl(TextBox66.Value), CDbl(TextBox67.Value))
Else
MsgBox "Veuillez remplacer les . par des ,", vbExclamation, "Erreur de saisie"
TextBox65 = ""
TextBox66 = ""
TextBox67 = ""
Exit Sub
End If
'calcul de la puissance
val2 = CDbl(Donnees.TextBox64.Value) * 2.2136 * 9.81 * Sqr(val1)
TextBox68 = val2
dl1 = Cells(20, 31).End(xlUp).Row + 1
Cells(dl1, 31) = val2