+ Reply to Thread
Results 1 to 4 of 4

Overflow Problem

  1. #1
    Registered User
    Join Date
    03-18-2008
    Posts
    1

    Overflow Problem

    Hi all,
    I am not a very experienced programmer, but this code keeps giving me a Runtime Error 6 Overflow, I'm not sure why. I understand what an error over flow is, but I do not understand why I am getting one. Any help would be appreciated... Thanks.

    James
    Please Login or Register  to view this content.
    Sorry about not initially using the code tags,
    Last edited by jshinevar; 03-18-2008 at 10:18 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Welcome to the forum, please read the Rules & use Code tags in future.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-19-2008
    Location
    Prague, CZ
    Posts
    11
    Hi,
    I think the problem is that both SeniorRate and NumberOfSenior is zero. Dividing 0/0 produces "overflow". You should test whether the NumberOfAny is non-zero (If ... Then ...).

    w.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you attach a sample workbook?

+ 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