Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RW RW is offline
external usenet poster
 
Posts: 49
Default Procedure Limit ??

I seemed to have reached the Procedure limit in one of my sub routines. Is
this limited by characters, lines of code or what?
If I can move some of the code into new procedures and call the new
procedures from within the large procedure, it this a workaround?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Procedure Limit ??

if you export the module and look at the resulting bas file size, if it
approachs 64K, then it is generally advised to make it smaller by using the
workarounds you describe.

--
Regards,
Tom Ogilvy


"RW" wrote:

I seemed to have reached the Procedure limit in one of my sub routines. Is
this limited by characters, lines of code or what?
If I can move some of the code into new procedures and call the new
procedures from within the large procedure, it this a workaround?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
RW RW is offline
external usenet poster
 
Posts: 49
Default Procedure Limit ??

So, the Module can only be 64k. If mine is this large, then the new
procedures will need to be in another Module? Or did you mean each Sub can
only be 64K?

If I create new procedures in another module, can I make global variables in
module 1 that can be read in the new module. If so, how is this done?

Thanks

"Tom Ogilvy" wrote:

if you export the module and look at the resulting bas file size, if it
approachs 64K, then it is generally advised to make it smaller by using the
workarounds you describe.

--
Regards,
Tom Ogilvy


"RW" wrote:

I seemed to have reached the Procedure limit in one of my sub routines. Is
this limited by characters, lines of code or what?
If I can move some of the code into new procedures and call the new
procedures from within the large procedure, it this a workaround?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Procedure Limit ??

Module. Just take some of the subs out of one and put them in a new module.
In general, keep them to a manageable size, better to have to many than too
large.

If you declare global variables in a module, that is Public before any
macros, they will be available to all modules.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"RW" wrote in message
...
So, the Module can only be 64k. If mine is this large, then the new
procedures will need to be in another Module? Or did you mean each Sub can
only be 64K?

If I create new procedures in another module, can I make global variables

in
module 1 that can be read in the new module. If so, how is this done?

Thanks

"Tom Ogilvy" wrote:

if you export the module and look at the resulting bas file size, if it
approachs 64K, then it is generally advised to make it smaller by using

the
workarounds you describe.

--
Regards,
Tom Ogilvy


"RW" wrote:

I seemed to have reached the Procedure limit in one of my sub

routines. Is
this limited by characters, lines of code or what?
If I can move some of the code into new procedures and call the new
procedures from within the large procedure, it this a workaround?

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
RW RW is offline
external usenet poster
 
Posts: 49
Default Procedure Limit ??

OK, I can declare the varibles as Public. Thanks

"Bob Phillips" wrote:

Module. Just take some of the subs out of one and put them in a new module.
In general, keep them to a manageable size, better to have to many than too
large.

If you declare global variables in a module, that is Public before any
macros, they will be available to all modules.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"RW" wrote in message
...
So, the Module can only be 64k. If mine is this large, then the new
procedures will need to be in another Module? Or did you mean each Sub can
only be 64K?

If I create new procedures in another module, can I make global variables

in
module 1 that can be read in the new module. If so, how is this done?

Thanks

"Tom Ogilvy" wrote:

if you export the module and look at the resulting bas file size, if it
approachs 64K, then it is generally advised to make it smaller by using

the
workarounds you describe.

--
Regards,
Tom Ogilvy


"RW" wrote:

I seemed to have reached the Procedure limit in one of my sub

routines. Is
this limited by characters, lines of code or what?
If I can move some of the code into new procedures and call the new
procedures from within the large procedure, it this a workaround?

Thanks




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
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM
Calling a procedure in a procedure Norman Jones Excel Programming 8 August 20th 04 07:53 PM
Calling a procedure in a procedure N10 Excel Programming 2 August 18th 04 12:49 AM
Calling a procedure in a procedure Don Guillett[_4_] Excel Programming 1 August 17th 04 11:31 PM


All times are GMT +1. The time now is 10:19 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"