Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and displaying an initial 'splash' Excel/VBA Userform

VBA How To

Creating and displaying an initial 'splash' Excel/VBA Userform

by  taupirho  Posted    (Edited  )

When developing VBA userform apps its sometimes useful to be able to display a small splash screen whilst your app is initialising itself and preparing to display its main userform. This can be a wee bit tricky but here's how you go about doing it. Lets assume your main form is called userform1 and your mini splash screen is userform2.

On your workbook open event put in the following code:

UserForm2.Show
UserForm1.Show

Now your userform2 (splash screen) should have an activate trigger. In this code you should do all your initialisation and at the end do an UNLOAD userform2. Userform1 (your main screen) will then kick in as normal.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top