+ Reply to Thread
Results 1 to 5 of 5

Runtime error 6 "overflow" help

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Runtime error 6 "overflow" help

    Good day,

    I am really hoping someone can advise how I can resolve a runtime error 6 "Overflow", that I'm getting at the bolded area in my code. I didn't get this error with a smaller data set, but with larger data sets I get this error and I really need to access larger data loads: Thanks in advance for any suggestions!
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Runtime error 6 "overflow" help

    I have tested the code and do not get an overflow error using 900k rows. Could it be possible the destination workbook is an .xls file and does not have enough rows?

    Could you explain what kind of data is on the workbook.
    Last edited by davesexcel; 02-12-2021 at 10:52 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: Runtime error 6 "overflow" help

    Hello Davesexcel!

    The macro should pull data from a closed workbook with an .xlsx extension into my master workbook which has a file extension of .xlsb

    Very puzzling! Appreciate your help!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Runtime error 6 "overflow" help

    Is it a huge amount of data, I just used random numbers when I tested it.

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: Runtime error 6 "overflow" help

    davesexcel-I tried a sample set of data too with 17000 rows and it worked. So I'm truly puzzled why it works with less data, but gives me the error for the whole report, which is only 17,000 rows. Thanks for your time.

+ 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. Copying data from Access to Excel: "Run-time error '6' Overflow"
    By lukelucky in forum Access Tables & Databases
    Replies: 1
    Last Post: 01-11-2018, 09:09 AM
  2. [SOLVED] Code "suddenly" starts giving me error 6 overflow
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-20-2016, 07:38 AM
  3. [SOLVED] RunTime Error 9 when using "With(strName)" to find sheet "strName"
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2016, 09:38 PM
  4. Mac excel error Runtime Error 429 due to CreateObject("Scripting.Dictionary")
    By iamstevetay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2015, 04:21 PM
  5. [SOLVED] Frequently Used Macro now Giving a" Runtime Error '1004 Application-Object Defined Error"
    By rjw524 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-02-2015, 02:39 PM
  6. [SOLVED] Runtime error "6" Overflow
    By crimzon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 12:58 AM
  7. Vlook up VBA Error when value not found "runtime error -1004"
    By sriram170 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2013, 01:14 PM

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