+ Reply to Thread
Results 1 to 2 of 2

Overflow error

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Overflow error

    Hi, I'm working on simple code to copy and paste certain rows from a list based on a corresponding list of values. (Specifically, one list contains extraneous rows of data, but I only want to copy/paste the matching rows). My code is:

    Please Login or Register  to view this content.
    But I'm getting an overflow error with in the Else: j = j + 1 line. Would appreciate if somebody could help me. Thanks!

    [Edit: I guess a potential problem is that one of the rows in the first list (i) has no match in the second list (j), which could cause j to increase indefinitely?]
    Last edited by VelvetRevolver84; 06-23-2013 at 10:16 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,771

    Re: Overflow error

    Declare i and j as long instead of integer

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.

+ 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