DavidWilkinson
Computer
- Aug 14, 2010
- 8
Hi,
I wonder if you could help me.
I am writing an Excel VBA application using a single Userform and a single Module. I was adding some new code to the Userform when I started getting the following error message:
"Microsoft Office Excel has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available".
The Userform and a single Module I have defined each contains a large amount of code:
- The Userform contains approx. 120 procedures and functions and approx. 12,000 lines of code.
- The Module contains approx. 150 procedures and functions and approx. 10,000 lines of code.
I suspected that my code needs to be separated into multiple modules. So I have already tried to break the Userform code and the code in the Module into separate modules, but I still get the error message, not always, but very frequently.
However, if I view the code using ALT+F11 and then invoke the initial macro, I don't get the error message..
I am using Excel 2007 with Windows 7 on one machine and Excel 2007 with Vista on another (I get the same results).
Any help would be greatly appreciated.
Best regards
David Wilkinson
I wonder if you could help me.
I am writing an Excel VBA application using a single Userform and a single Module. I was adding some new code to the Userform when I started getting the following error message:
"Microsoft Office Excel has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available".
The Userform and a single Module I have defined each contains a large amount of code:
- The Userform contains approx. 120 procedures and functions and approx. 12,000 lines of code.
- The Module contains approx. 150 procedures and functions and approx. 10,000 lines of code.
I suspected that my code needs to be separated into multiple modules. So I have already tried to break the Userform code and the code in the Module into separate modules, but I still get the error message, not always, but very frequently.
However, if I view the code using ALT+F11 and then invoke the initial macro, I don't get the error message..
I am using Excel 2007 with Windows 7 on one machine and Excel 2007 with Vista on another (I get the same results).
Any help would be greatly appreciated.
Best regards
David Wilkinson