I received this error message -Procedure too large
- in VBA. What is the reason and way out for this error?
相关问题
- Error handling only works once
- How do I identify what code is generating “ '&
- Excel formula in VBA code
- Converting byte array output into Blob corrupts fi
- Excel VBA run time error 450 from referencing a ra
相关文章
- Directly signing an Office Word document using XML
- <link> onerror do not work in IE
- Unregister a XLL in Excel (VBA)
- Could not find default endpoint element that refer
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- WPF- validation error event doesn't fire
- How to disable changes in a cell using vba?
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:
You'd have something like:
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:
The idea of GiantProcedure didn't work for me, using Microsoft Powerpoint 2013. Then I added a "call" before each "proc". Like this:
Now, it works.
Your compiled procedure cannot exceed 64kb. You should break it up into different sub routines.
http://msdn.microsoft.com/en-us/library/Aa264541