+ Reply to Thread
Results 1 to 4 of 4

Rows Limit in VBA Macro

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Rows Limit in VBA Macro

    Hello guys,

    Just a quick question: Why does in VBA Macro there's a limit in rows? just upto 32000+ rows. Well in fact, we can see that in Excel2007 the rows could reach upto 1M. What should be done to avoid this? Im using "integer" as the variable.


    Thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Rows Limit in VBA Macro

    You can't use Integer as the variable, you must use Long

    Please Login or Register  to view this content.
    Last edited by royUK; 11-02-2010 at 08:12 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Rows Limit in VBA Macro

    Hello,

    by definition Integer variables can hold values between -32,768 and 32,767. If you need to store larger numbers, use Long, which can range from -2,147,483,648 to 2,147,483,647

    cheers,

  4. #4
    Registered User
    Join Date
    11-10-2009
    Location
    manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Rows Limit in VBA Macro

    This would be of great help!

    Thanks a lot!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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