Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Checking to see if a user form is hidden

I am trying to find a way that I can hide a userform open a seconday one, and
once I close the other one it will check through 3 userforms to find which
one is hidden and show it.

What i have are 3 main userforms: ufMain1, ufMain2, ufMain3
and a secondary userform with a different function: ufCont

What I have is on each of the main user forms they have a button that hides
the form that is loaded, opens ufCont, allows the user to finish their input
and post it to the sheet, however when i hit the close button cmbClose I want
it to check if the main forms are just hidden (not unloaded) and go back to
the form they where working on.

Is this at all do-able?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Checking to see if a user form is hidden

Just put this in each of your main UserForm's Button's click events...

Me.Hide
ufCont.Show
Me.Show

The current UserForm will be hidden and the ufCont one will be shown... when
you close the ufCont UserForm, the UserForm whose button you clicked should
automatically be re-shown.

--
Rick (MVP - Excel)


"Alteran" wrote in message
...
I am trying to find a way that I can hide a userform open a seconday one,
and
once I close the other one it will check through 3 userforms to find which
one is hidden and show it.

What i have are 3 main userforms: ufMain1, ufMain2, ufMain3
and a secondary userform with a different function: ufCont

What I have is on each of the main user forms they have a button that
hides
the form that is loaded, opens ufCont, allows the user to finish their
input
and post it to the sheet, however when i hit the close button cmbClose I
want
it to check if the main forms are just hidden (not unloaded) and go back
to
the form they where working on.

Is this at all do-able?


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
Date field in user form & Loading a user form on opening workbook Balan Excel Programming 1 May 24th 08 03:40 PM
checking if a column is hidden John Excel Programming 3 June 12th 07 08:39 AM
Compile error in hidden module: [user form name] Excel/VBA Carlos[_7_] Excel Programming 1 April 30th 07 07:35 PM
checking for hidden columns stickandrock Excel Programming 5 December 21st 05 03:57 PM
Checking the status of a checkbox in a user form Peter Rooney Excel Programming 15 November 1st 05 03:59 PM


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