+ Reply to Thread
Results 1 to 3 of 3

Overflow Runtime Error 6

  1. #1
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Overflow Runtime Error 6

    Hello,

    When I try to select all on a sheet by clicking the upper left box I get this error. Does anyone know why and how to fix please?

    Thank you

    debug at:

    If (Sh.Index < 4) + (Target.Count > 1) Then Exit Sub

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Overflow Runtime Error 6

    If you select the upper corner to select the entire sheet, you are selecting 1,048,576 rows x 16,384 columns, which is over 17 billion; Count has a limit of around 2 billion.

    Use Target.CountLarge instead.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Banned User!
    Join Date
    10-12-2018
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    358

    Re: Overflow Runtime Error 6

    Thanks Jeff that worked!

+ 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. [SOLVED] Runtime error 6: Overflow
    By jeetkapadia in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2017, 05:40 PM
  2. runtime error 6 overflow??
    By nikko50 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 02:36 PM
  3. [SOLVED] Runtime error 6 - Overflow
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2013, 08:12 AM
  4. Runtime Error 6 Overflow
    By wlugo13 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-28-2013, 02:22 PM
  5. [SOLVED] VBA runtime error '6': Overflow
    By clapforthewolfman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2013, 05:07 PM
  6. [SOLVED] Overflow Runtime error 6
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2013, 12:23 PM
  7. Runtime Error 6 Overflow
    By Wescotte in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2005, 07:05 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