A
Alimbilo
Why am I getting a "Sub or Function not deifned" error when I am entering
this code:
PrivAte SuA D_Enter()
If B = 0 And C = 0 And A = 0 Then
D = 0
Else
If B = 0 And C = 0 Then
D = A
Else
If B = 0 And A = 0 Then
D = C
Else
If C = 0 And A = 0 Then
D = B
Else
If B = 0 Then
D = Sum(C * A)
Else
If C = 0 Then
D = Sum(B * A)
Else
If A = 0 Then
D = Sum(B * C)
Else
If B > 0 And C > 0 And A > 0 Then
D = Sum(B * C * A)
End If
End If
End If
End If
End If
End If
End If
End If
End Sub
The error highlight the value in the Sum(...)
Any Help?
this code:
PrivAte SuA D_Enter()
If B = 0 And C = 0 And A = 0 Then
D = 0
Else
If B = 0 And C = 0 Then
D = A
Else
If B = 0 And A = 0 Then
D = C
Else
If C = 0 And A = 0 Then
D = B
Else
If B = 0 Then
D = Sum(C * A)
Else
If C = 0 Then
D = Sum(B * A)
Else
If A = 0 Then
D = Sum(B * C)
Else
If B > 0 And C > 0 And A > 0 Then
D = Sum(B * C * A)
End If
End If
End If
End If
End If
End If
End If
End If
End Sub
The error highlight the value in the Sum(...)
Any Help?