xlvba recursive factorial function code example
Example: excel vba recursive example factorial function
Function Factorial(n)
Factorial = 1
If n > 1 Then Factorial = n * Factorial(n - 1)
End Function
Function Factorial(n)
Factorial = 1
If n > 1 Then Factorial = n * Factorial(n - 1)
End Function