I'm nearing the completion of a macro-enabled workbook that has many modules. I remember seeing some forum posts online that talked about there being a size limit to modules. It seems that the unofficial word is that the limit is 64K for each one.
One post I saw suggested to type the following in the Intermediate window in each module.
This returns a number, and in a few instances, what it returns on my modules is higher than 64. One userform module is even over 100.
However, I have tested my workbook on a few different computers (running different versions of Excel) and everything seems to work fine. So, I'm wondering... should I still break up my modules that are apparently over 64 in size? Or am I okay if I am not receiving an error when using the file?
One post I saw suggested to type the following in the Intermediate window in each module.
Code:
?len(application.VBE.ActiveCodePane.CodeModule.Lines(1,application.VBE.ActiveCodePane.CodeModule.CountOfLines))/1000
This returns a number, and in a few instances, what it returns on my modules is higher than 64. One userform module is even over 100.
However, I have tested my workbook on a few different computers (running different versions of Excel) and everything seems to work fine. So, I'm wondering... should I still break up my modules that are apparently over 64 in size? Or am I okay if I am not receiving an error when using the file?