Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Close User Form
I have a form that is used to filter information, within that form there are
sub forms of information. how do i set it up so that once you click an option on a sub form it automatically closes and returns to original form?? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Close User Form
Use the below code from the subform
Unload Me 'Example ------------------------ 'Load userform2 from userform1 (on command button click) Private Sub CommandButton1_Click() Load UserForm2 UserForm2.Show End Sub 'Unload userform2 and get back to userform1 Private Sub CommandButton1_Click() Unload Me End Sub In sub form call Unload Me -- If this post helps click Yes --------------- Jacob Skaria "Gazz_85" wrote: I have a form that is used to filter information, within that form there are sub forms of information. how do i set it up so that once you click an option on a sub form it automatically closes and returns to original form?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
text boxes retaining their last value on form close and restart | Excel Discussion (Misc queries) | |||
automatically close form before closing | Excel Discussion (Misc queries) | |||
Macro to Prompt User to Close After Saving | Excel Discussion (Misc queries) | |||
How do I fill a cell in a user form from a selection on same form? | Excel Discussion (Misc queries) | |||
close form code | Excel Discussion (Misc queries) |