Run-time error '13' Type mismatch on UserForm

ElvisHess

Board Regular
Joined
May 4, 2006
Messages
150
I have a spreadsheet that all of a sudden when I click a button to call up the UserForm. I get the subject error and the userform does not open. The Debugger stops at the line

UserForm.show

I can't even open the UserForm when I hit F5 in Visual Basic

Any Ideas.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What's the name of the userform? It should be UserForm1 if it's the first form in a workbook and you haven't changed it.
 
Upvote 0
Sounds like the problem could be in the userform's initialize event code.

Try one of these:

1 Goto Tools>Options... and select Break on All Errors on the General tab.

2 Start the form from design mode with F8 instead of using the sub that's showing it.
 
Upvote 0
I found an error in my initialization area. It had one of the #Value errors. I handled that with a if(iserror formula and it worked fine. Didn't know about the F8 method of tracking down bugs.

Thanks a million
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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