Click here to Skip to main content
12,511,920 members (42,712 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Access VBA
Is 64K the max size of an Access 2003 VBA subroutine?
Posted 26-Sep-12 11:02am
Comments
Sergey Alexandrovich Kryukov 26-Sep-12 17:36pm
   
What's the max patience of a person developing with VBA?.. :-)
--SA

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100