Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default need to minimize userform via command button on itself

hi - I'm building a simple data entry user form with a command button
at the bottom of it. When i click on this button, I'd like :

a) the user form to minimize (not hide. see below)
b) go to a specific worksheet in the workbook.

I have the part b) down with the simple Sheets("xxxx").Select command.
no problem there.

but I'm having a difficult time finding information about how to do a).
I tried userform1.hide command but when I try to show the userform
again by creating a button on the worksheet and linking it to
userform1.show, all the information that were entered previously are
all gone so that solution didn't work. if you know how to hide without
having the previously entered data wiped out, that solution would be a
good alternate solution.

I do have the minimize/maximize button all setup from other threads.
but in addition to those, i want this other particular command button
on the user form to trigger the minimizing of itself

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default need to minimize userform via command button on itself

Hide doesn't remove the previous data in my experience. You must be doing
something special.

A: unloading instead of hiding

B: showing a different copy of the useform

C: set your links up so they pick up from the activesheet

--
Regards,
Tom Ogilvy


"Jed" wrote:

hi - I'm building a simple data entry user form with a command button
at the bottom of it. When i click on this button, I'd like :

a) the user form to minimize (not hide. see below)
b) go to a specific worksheet in the workbook.

I have the part b) down with the simple Sheets("xxxx").Select command.
no problem there.

but I'm having a difficult time finding information about how to do a).
I tried userform1.hide command but when I try to show the userform
again by creating a button on the worksheet and linking it to
userform1.show, all the information that were entered previously are
all gone so that solution didn't work. if you know how to hide without
having the previously entered data wiped out, that solution would be a
good alternate solution.

I do have the minimize/maximize button all setup from other threads.
but in addition to those, i want this other particular command button
on the user form to trigger the minimizing of itself

Thanks for your help.


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
Minimize button on userform? Bob Excel Discussion (Misc queries) 3 June 13th 09 11:01 PM
Specifying a Command Button on a worksheet as differentiated from one on a UserForm Amber_D_Laws[_52_] Excel Programming 14 February 7th 06 03:43 PM
Userform disappears when you try to initialize from a command button RPIJG[_60_] Excel Programming 8 July 2nd 04 08:14 PM
VBA userform with minimize button RB Smissaert Excel Programming 0 May 10th 04 11:50 PM
COM add-in userform minimize button RB Smissaert Excel Programming 2 May 9th 04 01:28 PM


All times are GMT +1. The time now is 08:53 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"