+ Reply to Thread
Results 1 to 5 of 5

Myrna Larson code for Combinations and Permutations not working in Excel 07-Overflow

  1. #1
    Registered User
    Join Date
    03-23-2009
    Location
    Bahama, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Myrna Larson code for Combinations and Permutations not working in Excel 07-Overflow

    I've used the following code in Excel XP with no problems.
    Now that I have Excel 2007, I keep getting an "Overflow" error when trying to run the code. Sometimes it will say "Runtime error '6':, Overflow"

    When I step through the code (F8) the line that brings up the error is:

    If N > Cells.Count Then GoTo DataError

    To give an example of what values I'm entering use the following:

    Cell A1 = c
    Cell A2 = 5
    Cells A3 - A17 = A-O (one letter per cell)

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by PokerJoe; 03-23-2009 at 01:59 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Myrna Larson code for Combinations and Permutations not working in Excel 07-Overf

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-23-2009
    Location
    Bahama, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Myrna Larson code for Combinations and Permutations not working in Excel 07-Overf

    Sorry, mis-understood the forum rules initially. Thanks.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Myrna Larson code for Combinations and Permutations not working in Excel 07-Overf

    Thanks. How about posting a workbook and explaining what it's suppose to do?

  5. #5
    Registered User
    Join Date
    03-23-2009
    Location
    Bahama, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Re: Myrna Larson code for Combinations and Permutations not working in Excel 07-Overf

    I was able to find the solution on my own by researching other Excel forums. I can't explain why the code won't work in Excel 2007 as originally posted by Myrna Larson in July/2000.

    It worked fine in Excel 97.

    The solution is to comment out the line that is giving me problems and run it as stated in the comments within the code.

    The line is: If N > Cells.Count Then GoTo DataError

    The solution is: 'If N > Cells.Count Then GoTo DataError

    or copy the code below as is.

    Please Login or Register  to view this content.

+ 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