Problem help asap!

Ayral

New Member
Joined
Oct 3, 2014
Messages
49
I created a user form on excel, I had it set to launch automatically with some buttons, that when clicked brings you to different sheets, but when it loads up the screen freezes and only lets you click the user form, except nothing happens! I cant close excel, and I cant access the VBA code to hide it, any help? please!
Ayral
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
The UserForm is modal so when it has the focus it must be hidden or closed to return control back to the code that called it.

If you want the form to stay open but still be able to access the worksheet underneath it then you should change the "ShowModal" property of the UserForm to False.
 
Upvote 0
I would do that, but I cant access the spreadsheet due to the modal property, is there a way to disable it using keys? it wont even let me go to file, or the vb editor :(
 
Upvote 0
Try closing the UserForm using the X in the top right corner. If that doesn't work try Control+Break.
 
Last edited:
Upvote 0
Thank you!, ctrl + break worked! You just saved me starting again from a previous save :P
 
Upvote 0
Don't suppose you know why the buttons aren't working? this is the code for the 3:
Code:
Private Sub CommandButton12_Click()Sheets("New_Customer").Select
UserForm1.Hide
End Sub


Private Sub CommandButton13_Click()
Sheets("Main Menu").Select
UserForm1.Hide
End Sub


Private Sub CommandButton14_Click()
Sheets("New_Order").Select
UserForm1.Hide
End Sub
Thanks
 
Upvote 0
I don't see why they wouldn't work (I'm assuming they are in the UserForm code module :)).

Usually when something strange happens to me with a UserForm it is because an event has been triggered that I didn't think about. Do you have any Worksheet_Activate events on the sheets you are selecting that may be interfering with the code control flow?
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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