View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] houstoncity2004@yahoo.com is offline
external usenet poster
 
Posts: 2
Default how to code factorial in Excel

I am trying to code the factorial function in VBA in Excel.
I know I can use the FACT() in the worksheet, but somehow I can't use
the same function when I am writing the VBA. It gave error and said
"sub or function not defined". I did macro recording and copy the
code to my sub-function and try to run it, it gave error again. Can
someone help? Thanks.