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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto close a UserForm 1

Status
Not open for further replies.

gregmosu

Programmer
Jul 8, 2002
117
US
I have a Userform for Excel that opens first and tests the database connection. If the connection can be established, I want to close that userform and open a new userform. So far, all I can do is hide the first form. Is there a way to close it?

Code:
UserForm1.Hide
UserForm2.Show



Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top