Han*_*son 17
您可能有一个或多个巨大的程序/功能,我认为VBA的每个程序限制为64k或更高.
您可以通过将该过程拆分为多个过程来修复它,然后可以通过一个过程调用该过程.
所以不要:
Sub GiantProcedure()
... ' lots and lots of code
End Sub
Run Code Online (Sandbox Code Playgroud)
你有类似的东西:
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
Run Code Online (Sandbox Code Playgroud)