Code cannot find form

srcera

Board Regular
Joined
May 22, 2006
Messages
95
I have a form named frmPlateDefect, (That is the form name, not the caption) and my code errors when I tell it to show.

Load frmPlateDefect
frmPlateDefect.Show

The same error occurs with or without the Load statement.

Error Description:
Run-time error '-2147024809 (80070057)':
Could not find the specified object.

When frmPlateDefect is mouse-overed it reads
<Object variable or With block variable not set>

Any ideas would be appreciated. I have searched quite a bit, but haven't found any methods that would apply.

Thank you
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I played around with it a little while longer and moved where I set the rowsource of my comboboxes and then got a different error. I then added a named range and set the comboboxes to that, it appears to work now.
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,093
Members
448,944
Latest member
SarahSomethingExcel100

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