VBA - Excel crashes after ca 102 userform show/unload cycles

sejrik

New Member
Joined
Feb 18, 2014
Messages
4
Hi,
i have problem with excel form.
If I show Userform, then unload it and show it over and over again, i get error message.
It's visible in attached example.


After click on start, excel will show and unload form over and over.
After count reaches ca. 102 (<2 min.), excel crash.


It's possible resolve this crash and count until user stop it without using ShowModal = False?


(This is only example. I don't count number, I only need show forms over and over without crash.)


Example and error screenshot is in link below.
https://drive.google.com/folderview?id=0ByJeH3S65yLWNFgzQ1lUUVR0OXM&usp=sharing
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Thank You.
Your code work.


But i have another example, where i got the same error as in my first example.
I uploaded it here.


Run example2.xlsm, click on button and hold enter, until form stop responding. Then if You close non-responsive form, get the same error as in example1.
Can You help me with this?
 
Upvote 0
are all 3 userform different? why can't you use 1 and just run it over and over again in same principle as first example?
Just can't see the point of pressing "enter" 100 time on userform.
 
Upvote 0
I think this is working now. please check above link (I updated file).
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,394
Members
449,222
Latest member
taner zz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top