+ Reply to Thread
Results 1 to 4 of 4

Excel 2003 - Maximum amount of vba code in a worksheet

  1. #1
    Registered User
    Join Date
    12-07-2006
    Posts
    36

    Question Excel 2003 - Maximum amount of vba code in a worksheet

    Hi.
    Some time ago I was developing a worksheet with a large amount of code in it, and I got some kind of 'out of memory' error.
    I seem to remember it turned out that the error was because I had too much vba code in a single worksheet.
    I think I overcame the problem by moving routines out of the sheet and into a module.

    I'm probably going to be approaching this limit again with something I'm wroking on now (although I haven't had any errors yet.)

    Does anyone know what the maximum amount of code you can have in a single worksheet in Excel 2003 is?
    And is there an easy way to find out how much code you have in a worksheet?

    Thanks in advance for your help.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Excel 2003 - Maximum amount of vba code in a worksheet

    Hi

    See this link:

    http://www.dailydoseofexcel.com/arch...e-size-limits/

    Richard
    Richard Schollar
    Microsoft MVP - Excel

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

    Re: Excel 2003 - Maximum amount of vba code in a worksheet

    You shouldn't have standard code in the worksheet, only worksheet related code.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    12-07-2006
    Posts
    36

    Re: Excel 2003 - Maximum amount of vba code in a worksheet

    Richard, royUK,
    Thanks a lot for your help.


+ 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