ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding code to a control on a form causes excel to crash (https://www.excelbanter.com/excel-programming/340699-adding-code-control-form-causes-excel-crash.html)

Skuzapo

Adding code to a control on a form causes excel to crash
 
Good day folks,

I have a form which shows the user information which has been entered
previously and asks for new user input.

The form worked fine until I added some new controls and added the code to
populate the combo boxes which a few choices.

I put a stop in the code and stepped through to see what the problem was and
it ran fine until it got to the new code. When it gets to the first line of
the new code excel crashes every time.

I have tried deleting the controls and starting again by adding them to the
form and I have tried using a new form - both cause excel to crash....
Is there a memory limit that I'm reaching? The entire spreadsheet only
weighs in at 1mb so surely not?

Any advice on how to solve this issue?

Thanks a lot


Tom Ogilvy

Adding code to a control on a form causes excel to crash
 
I don't believe a memory limit is the source of your problem.

You might try Rob Bovey's free code cleaner addin
http://www.appspro.com

--
Regards,
Tom Ogilvy

"Skuzapo" wrote in message
...
Good day folks,

I have a form which shows the user information which has been entered
previously and asks for new user input.

The form worked fine until I added some new controls and added the code to
populate the combo boxes which a few choices.

I put a stop in the code and stepped through to see what the problem was

and
it ran fine until it got to the new code. When it gets to the first line

of
the new code excel crashes every time.

I have tried deleting the controls and starting again by adding them to

the
form and I have tried using a new form - both cause excel to crash....
Is there a memory limit that I'm reaching? The entire spreadsheet only
weighs in at 1mb so surely not?

Any advice on how to solve this issue?

Thanks a lot





All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com