+ Reply to Thread
Results 1 to 5 of 5

Run-Time error 6 'Overflow'

  1. #1
    Registered User
    Join Date
    09-04-2008
    Location
    Europe
    Posts
    12

    Run-Time error 6 'Overflow'

    Dear All
    I have downloaded a file with macro, but everytime when I run it, the Run-Time error 6 'Overflow' appears.
    I tried myself to modiy the macro, but does not help :

    Error line :

    Please Login or Register  to view this content.
    Macro :

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Run-Time error 6 'Overflow'

    hi guatelize, as a quess: StMas(49) As Byte

    VB help extract:
    Byte Data Type
    Byte variables are stored as single, unsigned, 8-bit (1-byte) numbers ranging in value from 0–255.

    The value your are trying to put in StMas is not of byte data type

  3. #3
    Registered User
    Join Date
    09-04-2008
    Location
    Europe
    Posts
    12

    Re: Run-Time error 6 'Overflow'

    Thanks for your message, can you propose me a solution ?
    Oliver

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Run-Time error 6 'Overflow'

    without sample book, purpose of all that and result expected, just to try to avoid that error change this:

    Please Login or Register  to view this content.
    to this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-04-2008
    Location
    Europe
    Posts
    12

    Re: Run-Time error 6 'Overflow'

    Suuuuuper, thanks a lot.
    Have a nice Christmas & a wonderfull 2013
    Oliver

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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