Excel 2003 - Runtime 13 when loading userform from cmd button

grip88

New Member
Joined
Mar 28, 2012
Messages
15
I have been developing a form to enter data into a spreadsheet, it has been working fine, i havent changed any code recently but i have started to get a runtime 13 mismatch error.
This code is in a module that is called from the cmd button:

Sub Button1_Click()
Worksheets("Daily Records").Activate
frmDaily.Show
End Sub

The debug highlights the frmdaily.show line. I have looked on forums and tried the vbmodeless as well but it still doesnt work.

Any suggestions?

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I suspect the error is actually in the startup code of the form. If you choose debug when the error occurs, and then press f8 repeatedly, you should get to the line that is actually causing the error.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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