Hola Gente he creado esta función para calcular el Factorial de un numero y me gustaria saber si es posible hacerla mas robusta o no se justifica por su simplicidad...
Private Function FACTORIAL(NUM As Integer) As Double
Dim Res
Dim tmp
Dim cont
Res = 1
For cont = 1 To NUM
Res = Res * cont
tmp = Res
Next
FACTORIAL = tmp
End Function