ldetienne100
XLDnaute Nouveau
Bonjour,
étant débutant, je connais très peu les variables et crois que mon problème se trouve dans celles ci. Lors de l'exécution du programme, une erreur #5, Argument ou appel de procédure incorrect, survient à cette ligne:
y1y2 = Sqr((y1 - y2) * Sqr(y1 - y2)). Voici le code:
Sub Macro1()
Dim y1 As String
Dim y2 As String
Dim x1 As String
Dim x2 As String
Dim y1y2 As String
Dim x1x2 As String
y1 = Range("b" & a).Value
y2 = Range("b" & b).Value
x1 = Range("c" & a).Value
x2 = Range("c" & b).Value
y1y2 = Sqr((y1 - y2) * Sqr(y1 - y2))
x1x2 = Sqr((x1 - x2) * Sqr(x1 - x2))
Merci de m'éclairer.
étant débutant, je connais très peu les variables et crois que mon problème se trouve dans celles ci. Lors de l'exécution du programme, une erreur #5, Argument ou appel de procédure incorrect, survient à cette ligne:
y1y2 = Sqr((y1 - y2) * Sqr(y1 - y2)). Voici le code:
Sub Macro1()
Dim y1 As String
Dim y2 As String
Dim x1 As String
Dim x2 As String
Dim y1y2 As String
Dim x1x2 As String
y1 = Range("b" & a).Value
y2 = Range("b" & b).Value
x1 = Range("c" & a).Value
x2 = Range("c" & b).Value
y1y2 = Sqr((y1 - y2) * Sqr(y1 - y2))
x1x2 = Sqr((x1 - x2) * Sqr(x1 - x2))
Merci de m'éclairer.