Click here to Skip to main content
Rate this: bad
good
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 12:02pm
Comments
Sergey Alexandrovich Kryukov at 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
0 Maciej Los 580
1 OriginalGriff 420
2 Sascha Lefévre 289
3 CHill60 225
4 Abhinav S 220
0 Sergey Alexandrovich Kryukov 9,773
1 OriginalGriff 9,290
2 Peter Leow 5,137
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,036


Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2015
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