senators40
Technical User
Hi,
I have a userform (Form1) and I have another userform on top if a certain event happens. (Form4)
On the second userform (Form4) I have a command button that says Completely Start Over.
In that code for the Completely Start Over button I state the following
Unload Me
Unload Form1
Unload Form2
Unload Form3
When it starts to unload Form1 Excel hangs. When I run through on the step it seems to hang on the Unload Form1 for about 20 seconds before it proceeds (even longer on older computers)
I tried recreating it using simple macros and it doesnt have a problem with it.
The interesting thing is that when I do it manually - ie close the original form and then click on the Cancel button (which has all the Unload Form1, Unload Form2 Unload Form3) there is no delay.
I tried to delay the pressing of the command button (just in case there was a screen refreshing issue or something) but it didn't help as well.
The form in question has over 450 items on it (labels, textboxes, commandboxes etc and the code has 20,000 lines)
I am using Excel 2002 (10.6829.6830) SP3 on Windows xp. I also tried running it with Excel 2000 and Windows 98 and experienced the same problem.
Any help would be appreciated.
Thanks,
Jeff
I have a userform (Form1) and I have another userform on top if a certain event happens. (Form4)
On the second userform (Form4) I have a command button that says Completely Start Over.
In that code for the Completely Start Over button I state the following
Unload Me
Unload Form1
Unload Form2
Unload Form3
When it starts to unload Form1 Excel hangs. When I run through on the step it seems to hang on the Unload Form1 for about 20 seconds before it proceeds (even longer on older computers)
I tried recreating it using simple macros and it doesnt have a problem with it.
The interesting thing is that when I do it manually - ie close the original form and then click on the Cancel button (which has all the Unload Form1, Unload Form2 Unload Form3) there is no delay.
I tried to delay the pressing of the command button (just in case there was a screen refreshing issue or something) but it didn't help as well.
The form in question has over 450 items on it (labels, textboxes, commandboxes etc and the code has 20,000 lines)
I am using Excel 2002 (10.6829.6830) SP3 on Windows xp. I also tried running it with Excel 2000 and Windows 98 and experienced the same problem.
Any help would be appreciated.
Thanks,
Jeff