+ Reply to Thread
Results 1 to 6 of 6

Debug error 6 overflow

  1. #1
    Registered User
    Join Date
    12-23-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Debug error 6 overflow

    The problem with the code is at the point of the second last line.

    Please Login or Register  to view this content.

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

    Re: Debug error 6 overflow

    What are the values of the variables when the code fails?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-23-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Debug error 6 overflow

    both are 0

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

    Re: Debug error 6 overflow

    What's 0/0?

  5. #5
    Registered User
    Join Date
    12-23-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    14

    Re: Debug error 6 overflow

    yeah it doesnt work but the values shouldnt have been 0 but then I checked my values and they were wrong and then i added an if statement in case the values were 0 and it still gave an error.

    Please Login or Register  to view this content.

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

    Re: Debug error 6 overflow

    What happens when you step through the code?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Code Runs in Debug Mode But Returns Type Mismatch Error Outside Debug Mode
    By valerie.k.chiang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2014, 03:48 PM
  2. Overflow error, can't see why
    By Alexander_V in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 11:57 AM
  3. Explanation of the Run-time error '6': Overflow Error
    By mgphill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2012, 10:46 AM
  4. Want to do a while-loop but get error message: run error '6' overflow
    By danzi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2011, 01:48 PM
  5. Error 6 Overflow
    By tekapo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2010, 05:07 AM
  6. Overflow error, need help
    By mkerstei in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2006, 10:20 PM
  7. vba error 6 overflow
    By tinybears in forum Excel General
    Replies: 3
    Last Post: 05-02-2006, 05:40 AM
  8. Overflow Error
    By DG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2005, 01:06 PM

Tags for this Thread

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