Results 1 to 5 of 5

Overflow with "long" counter ?

Threaded View

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    2

    Overflow with "long" counter ?

    I am working in xlsx (Excel 2007) and working with a range, long 260k rows. I declared a counter as "long" to determine the range size. Msgbox returns the correct 260k. I can go to the end of the range, so row 260k ... Now I want to work my way up line by line by using:

    For i = lngLastRow (the long variable) to 2 Step -1
        code
    Next
    But Excel returns an overflow error message.

    Any suggestion ?
    Last edited by JBeaucaire; 11-28-2013 at 02:55 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. "Do Until Matches Criteria"-Loop Thru Randomised Range, With Counter
    By GUERCHARD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2013, 07:32 AM
  4. label overflow control, append "..."
    By lolelner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2010, 09:58 AM
  5. Replies: 5
    Last Post: 11-26-2008, 02:10 PM

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