user forms

  • Thread starter Thread starter tim Shudt
  • Start date Start date
T

tim Shudt

Lets say I have 3 user forms each with a next button. When I click the
next button I want to open the next form and close the form with the
button that was clicked. Please help

Tim

***** Posted via: http://www.ozgrid.com
Excel Templates, Training & Add-ins.
Free Excel Forum http://www.ozgrid.com/forum *****
 
Tim,

Something like this, for commandbutton1 on userform1:

Private Sub CommandButton1_Click()
UserForm1.Hide
Unload UserForm1 ' only if you don't need it again...
Load UserForm2 ' only if you haven't already loaded it...
UserForm2.Show
End Sub

HTH,
Bernie
MS Excel MVP
 

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

Similar Threads

VBA Help 1
Two Excel forms- swapping data. 1
User Defined Function 2
Unprotecting worksheet 1
VBA Loops 1
sending attachement 1
Floating form/window? 4
changein text to all caps 6

Back
Top