Getting an error meassage: Procedure too large in vba? what is the reason and way out?
+1
A:
You probably have one or more gigantic procedures/functions and I think VBA has a limit of 64k or something per procedure.
You fix it by splitting that procedure up into multiple procedures that can then be called by the one procedure.
So instead of having:
Sub GiantProcedure()
... ' lots and lots of code
End Sub
You'd have something like:
Sub GiantProcedure()
... ' a little bit of common code
Proc1()
Proc2()
Proc3()
End Sub
Sub Proc1()
... ' quite a bit of code
End Sub
Sub Proc2()
... ' quite a bit of code
End Sub
Sub Proc3()
... ' quite a bit of code
End Sub
ho1
2010-09-20 12:07:58
A:
Your compiled procedure cannot exceed 64kb. You should break it up into different sub routines.
Wix
2010-09-20 12:08:06
A:
You might get this error message if the macro has been created using the 64-bit version of Office. See the following article for further details and a workaround:
0xA3
2010-09-20 12:09:51