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

User Forms in VBA

Status
Not open for further replies.

Dwight3238

Technical User
Aug 19, 2003
11
US
Hi I'm creating a automation template in Word and I need to use multiple user forms, how do I get the code to open the next form from the previous one?
 
Hi Dwight3238,

Assuming you have a button on the form to go to the next then in the code behind the button put ..

unload me
nameofnextform.show

Enjoy,
Tony
 
Thanks but i guess i wasn't very clear. i need to call the second form and then return back to the original form.

i'm in an IF statement that if the condition is true then i need to open this other form. i can't use an input box since i need to present a list of choices to the user in a combobox. once the choice is made we return to the original form.

Any help would be greatly appreciative.

 
Hi,

Put every things on the same form and then hide or make visible as needed.


Jean-Paul
Montreal
jp@solutionsvba.com
mtljp2@sympatico.ca
 
Hi Dwight3238,

At whatever point you want you can show a(nother) form just by ..

Code:
NewFormName.Show

.. and when the form is closed control will return to the next statement after the Show.

Enjoy,
Tony
 
Instead of using multiple user forms, try using the MultiPage Control from the toolbox.

Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top