Slow UserForm

P

Patrick C. Simonds

I have this simple piece of code to close one UserForm and open another. The
problem is that UserForm2 does not unload before UserForm14 opens, and it
sits behind UserForm14 (partially visible) until UserForm14 is closed. This
works fine on my other 5 UserForms.

Any thoughts?



Private Sub CommandButton2_Click()

Unload UserForm2
UserForm14.Show

End Sub
 
D

Doug Robbins - Word MVP

How about throwing in a UserForm2.Hide

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
P

Patrick C. Simonds

I tried that as well, Also tried Application.ScreenRefesh before opening
UserForm14
 
P

Patrick C. Simonds

Thanks to anyone who may have considered a solution to my problem.

Turns out I had an unmatched Application.ScreenUpdating = False
 
P

Perry

Application.screenupdating = false
'code to close and open userforms here
application.screenupdating = true

--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top