Userforms arent hiding

jonens

New Member
Joined
Oct 12, 2010
Messages
3
Help!
Ive got a userform which has 11 command buttons on it, which in turn will opne the appropriate userform when clicked. This works fine.
However, when i click on the command bitton on the new userform, it calls the module correctly, but wont hide the form?

Code:
Private Sub CommandButton1_Click()
Call loadES4data
Unload ES4
ES5.Show
End Sub
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What about trying

me.hide instead of Unload
 
Upvote 0
I'd tried all me.hide, unload me etc and nothing worked.
I then reviewed the coding inthe module called.
Id made
Code:
application.screenupdating=false
adding
Code:
application.screenupdating=true
at the end of the code has done the trick!!
I'll get my head around all of this one day!
 
Upvote 0
As long as you have a solution and learning.;)
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,820
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top