Click here to Skip to main content
15,918,617 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Is 64K the max size of an Access 2003 VBA subroutine?
Posted
Comments
Sergey Alexandrovich Kryukov 26-Sep-12 17:36pm    
What's the max patience of a person developing with VBA?.. :-)
--SA

1 solution

Older versions of VBA had a 64K maximum size of a compiled module.

VB6 had a limit of 64K lines of code in a single procedure / function / subroutine

It also had a limit of 64k maximum identifiers in a module.

It's possible that some of those limits may no longer exist in the latest versions of VBA, but I can't conceive of any reason why Microsoft would bother to invest any resources in removing a 64k limit on the size of a subroutine.

If you have a single subroutine that's anywhere near that size, it really should be split up.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900