+ Reply to Thread
Results 1 to 12 of 12

Overflow error

  1. #1
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Overflow error

    Hi everyone,

    A genius on this forum gave me this awesome code.
    It basically splits multiple values in a row to individual rows, with each row only having one of these values.

    So if in Column H2 and I2 are a value it creates an extra row for I2, clearing cell I2 and H3.

    I tried to use this code on another file but i get the error: Run-time error '6': Overflow

    This is the code.
    Please Login or Register  to view this content.
    It stops at: x = .Value

    Does anyone know whats wrong or how to fix this?

    Thanks for all the help.

  2. #2
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Overflow error

    try

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    Hi Graym,

    It now gives a "compile error, expected array" because of this line:
    Please Login or Register  to view this content.
    Highlighting the furst UBound

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Overflow error

    How big is the current region? Might be to do with array limits.

  5. #5
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Overflow error

    sorry didn't see array
    maybe -

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    Hi
    The range now is A1:Z198

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Overflow error

    OK not that then. Fumbling in the dark really, but do you have any errors in your range - can you post a workbook?

  8. #8
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    I'll try to make something because i'm working with sensitive data

  9. #9
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    In attached file i would like to apply the script.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    I see that the array should be (5, 6, 7)
    Please Login or Register  to view this content.
    Funny how when i try this in the attached doc the script works, but in my real file it gives this overflow error.....

  11. #11
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Overflow error

    I think it must be related to your actual data because that code runs without error on your sample. Have a look for odd values and hope somebody else happens by with a bright idea.

  12. #12
    Forum Contributor
    Join Date
    06-14-2013
    Location
    jk
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Overflow error

    Hi StephenR

    Thanks for your answer.
    Do you perhaps know another script that'll do the same trick?

+ 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] OVerflow 6 error
    By Mortada in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-25-2013, 06:09 PM
  2. Overflow error
    By VelvetRevolver84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2013, 11:50 PM
  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. Msg error (overflow)
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-25-2011, 10:54 AM
  6. Overflow error
    By share knowledge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-02-2010, 02:07 AM
  7. Overflow Error
    By transparencia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2010, 02:21 PM
  8. Overflow error, need help
    By mkerstei in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2006, 10:20 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