#1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Forms

How can I go about opening one of my forms then opening
another form which I will later come back to, I would like
to come back to where I left the code in my first form. I
was thinking I should open the 2nd form from my 1st form
and then use a GoTo statement to come back -- but this is
not working. Basically I want one form - the 1st form - to
stay open the whole time. This may sound confusing let me
know if I need to rephrase.

Thank You,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Forms

If you have Userform 1 and Userform2 each with a Commandbutton:

In Userform1

Private Sub CommandButton1_Click()
'Userform1 code here
Me.Hide
UserForm2.Show
Me.Show
'more Userform1 code here
End Sub

In Userform2

Private Sub CommandButton1_Click()
'Userform2 code here
Unload Me
End Sub

hth,

Doug Glancy



wrote in message
...
How can I go about opening one of my forms then opening
another form which I will later come back to, I would like
to come back to where I left the code in my first form. I
was thinking I should open the 2nd form from my 1st form
and then use a GoTo statement to come back -- but this is
not working. Basically I want one form - the 1st form - to
stay open the whole time. This may sound confusing let me
know if I need to rephrase.

Thank You,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Forms

Just launch the 2nd userform from the first. The first will stay open, and
you can return to it by closing the second.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...
How can I go about opening one of my forms then opening
another form which I will later come back to, I would like
to come back to where I left the code in my first form. I
was thinking I should open the 2nd form from my 1st form
and then use a GoTo statement to come back -- but this is
not working. Basically I want one form - the 1st form - to
stay open the whole time. This may sound confusing let me
know if I need to rephrase.

Thank You,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Rosie Excel Worksheet Functions 1 February 22nd 10 08:49 PM
Forms Karen D Excel Discussion (Misc queries) 0 January 22nd 10 08:50 PM
Calling Forms from Forms - Exit problems Stuart[_5_] Excel Programming 3 May 25th 04 06:50 AM
Forms Kord Excel Programming 2 December 7th 03 12:15 AM
Why some forms not available? Edwin Merced Excel Programming 1 November 28th 03 05:05 PM


All times are GMT +1. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"