How do you take the factorial of a number in VBA: k!.
Jul 11th 2016 #2 Re: How do you take the factorial of a number: k!You could use WorksheetFunction.FactOr you could write a UDF Code Function Factorial(N as Long) as Double If N<=1 Then Factorial = 1 Else Factorial = N * Factorial(N-1) End If End Function The worksheet function is faster.