Procedure Too Large

M

Mike H.

I get a compile error-procedure too large. The sub is 75,188 bytes. What is
the limit?
 
D

Dave Peterson

I've never seen a limit documented by Microsoft.

Rule of thumb is about 64k.
 
P

Peter T

Are you saying your sub, ie a single routine, that when saved to a text file
is 75k, as distinct from a code module of multiple routines.

If so, thank the compiler for flagging and reconstruct into many smaller
subs & functions.

Regards,
Peter T
 
M

Mike H.

That is what I am saying, it is 75k worth of text. And to solve the problem,
I did break it out until it would run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top