Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Too many modules?


Is there a maximum number of modules/lines of codes for a VB project? I
started getting this error message all of a sudden?
Excel can not complete this task with available resources. Choose less
data or close other applications.
I have 9 modules in the VB project and a total of 850 lines of code.


--
kwiklearner
------------------------------------------------------------------------
kwiklearner's Profile: http://www.excelforum.com/member.php...o&userid=31909
View this thread: http://www.excelforum.com/showthread...hreadid=531574

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Too many modules?

I have 9 modules in the VB project and a total of 850 lines of
code.


That is far below any limit VBA has. There is a maximum length of
a procedure (a few thousand lines, I think), and a maximum module
size (about 64K when exported to text).


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"kwiklearner"
wrote
in message
...

Is there a maximum number of modules/lines of codes for a VB
project? I
started getting this error message all of a sudden?
Excel can not complete this task with available resources.
Choose less
data or close other applications.
I have 9 modules in the VB project and a total of 850 lines of
code.


--
kwiklearner
------------------------------------------------------------------------
kwiklearner's Profile:
http://www.excelforum.com/member.php...o&userid=31909
View this thread:
http://www.excelforum.com/showthread...hreadid=531574



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Too many modules?

There is maximum to the number of variables.

What the VBA machine does is to first read and interpret your code and wen
it finds no obstructions is will run.
However, if you have a routine where you redefine a variable during loops in
your code and also create new variables, the machine may get overloaded.
You should try putting more variables in an array-variable.

With an array you only haveone variable where you can store unlimited
values.

HTH,

Sybolt



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with modules. Cloudy New Users to Excel 1 June 17th 08 10:10 AM
Public, Private, Event modules, Forms modules,,, Jim May Excel Programming 11 October 31st 05 03:12 AM
Basic question - modules and class modules - what's the difference? Mark Stephens[_3_] Excel Programming 9 May 8th 05 11:48 AM
When to code in sheet or userform modules and when to use modules Tony James Excel Programming 1 December 16th 04 10:02 PM
Class Modules vs Modules Jeff Marshall Excel Programming 2 September 28th 03 07:57 PM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"