+ Reply to Thread
Results 1 to 5 of 5

Factorials

  1. #1
    Registered User
    Join Date
    03-06-2007
    Posts
    11

    Factorials

    I need to create a program that lets user's input a number and by clicking a button it finds its factorial.

    Here's what I have for now...

    User is going to input number in TextBox and Press CommandButton(Here's where I'm stuck) and answer is shown in a MsgBox

    I know it has to deal with possibly Arrays and Do-Loops I just don't know how to code it. I have an idea it has to deal with the Do-Loop being assigned x*(x-1) looping till x=1, but I could be wrong.

    Sorry for asking help again I promise this will be my last one (or maybe one more), but that's it! Thanks.

  2. #2
    Registered User
    Join Date
    11-16-2006
    Posts
    80
    Hi,

    Use this subroutine

    Please Login or Register  to view this content.
    I think this will only take up to 170

    You could also use the built in funtion in Excel

    =FACT(A2)

    either or

    mccreaso

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    What about ...
    Please Login or Register  to view this content.
    HTH
    Carim


    Top Excel Links

  4. #4
    Registered User
    Join Date
    03-06-2007
    Posts
    11
    Man I am such an idiot!!!! Why didn't I go on these forums before!! Thank you!

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad it fixed your problem ...

    Thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1