Getting a "File Not Found" error when trying to show userform

B

Bruce

I am creating a userform.I have created a macro that calls the userform

When I select the button, I get a "File not Found" error. When I then select
debug, it reports:
RUN-TIME ERROR '361'
Can't load or unload this object.


Macro code is:

Sub InputForm()

UserForm1.Show

End Sub


I do have my form named UserForm1 (defualt)


Right now the form is pretty simple.
I am just starting it.

Thanks
Bruce
 
D

Dave Peterson

Any chance you're clicking a button that runs a macro that shows the form?

If yes, check that button to see where that assigned macro really is. It could
be pointing to a different workbook.

If you look at VBA's help for "Trappable errors", you'll see that 361 just
describes what you described--that the object couldn't be loaded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top