Userform not staying on screen

sspatriots

Well-known Member
Joined
Nov 22, 2011
Messages
572
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have this code that runs and takes a while, therefore, at the beginning I have a small Userform that pops up at the beginning that says "Please Wait!". At the end of the code, I unload the form. However, while that code is running in the background the form tends to disappear while it is running. I'm wondering if I have an incorrect setting here. I have screenupdating set to false right after the form loads and then back to true once it unloads.

Any ideas are welcome. Thanks, SS


VBA Code:
Pleasewait.Show vbModeless



VBA Code:
Unload Pleasewait
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Does your code give anything the focus by making it active or selected?
Another thought - inject a small pause in the line after the form is opened in an effort to give it some stability before disabling screen updating.
 
Upvote 0
Solution
Does your code give anything the focus by making it active or selected?
Another thought - inject a small pause in the line after the form is opened in an effort to give it some stability before disabling screen updating.
Thanks. I put the pause in there for 2 seconds and that seemed to keep it visible. Before, it would just be a shadow or disappear altogether.
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,611
Members
449,109
Latest member
Sebas8956

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