#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hi


Hi

I have a user form with has a text box and a command button
I use the text box to show a cash amount from two different works
sheets

then you click the button to bring up a 2nd userform which ask 3
options eg return to main page etc but i can not seem to close the
first userform it just stay there.

Its late and i have been working for sometime what am i missing?

He is my code

Private Sub CommandButton1_Click()

userform2.show

end sub

Thanks


--
raw
------------------------------------------------------------------------
raw's Profile: http://www.excelforum.com/member.php...o&userid=28312
View this thread: http://www.excelforum.com/showthread...hreadid=479308

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hi

maybe...

Private Sub CommandButton1_Click()
me.hide
userform2.show
me.show
end sub

or

Private Sub CommandButton1_Click()
me.hide
userform2.show
unload me
end sub

raw wrote:

Hi

I have a user form with has a text box and a command button
I use the text box to show a cash amount from two different works
sheets

then you click the button to bring up a 2nd userform which ask 3
options eg return to main page etc but i can not seem to close the
first userform it just stay there.

Its late and i have been working for sometime what am i missing?

He is my code

Private Sub CommandButton1_Click()

userform2.show

end sub

Thanks

--
raw
------------------------------------------------------------------------
raw's Profile: http://www.excelforum.com/member.php...o&userid=28312
View this thread: http://www.excelforum.com/showthread...hreadid=479308


--

Dave Peterson
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



All times are GMT +1. The time now is 11:45 PM.

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

About Us

"It's about Microsoft Excel"