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

1 solution

Rate this: bad
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.

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 |
Web02 | 2.8.170813.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2017
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