+ Reply to Thread
Results 1 to 5 of 5

Overflow with "long" counter ?

  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:

    Please Login or Register  to view this content.
    But Excel returns an overflow error message.

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

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,621

    Re: Overflow with "long" counter ?

    Where is the error occurring?
    If posting code please use code tags, see here.

  3. #3
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Overflow with "long" counter ?

    There's no reason based on the information given so far for that error. Perhaps a look at the whole macro.

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

    Re: Overflow with "long" counter ?

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 11-28-2013 at 06:03 PM. Reason: Added Code tags

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,901

    Re: Overflow with "long" counter ?

    Please Login or Register  to view this content.
    For the future: Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Ben Van Johnson

+ 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. 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