textbox automation error

  • Thread starter Thread starter John Wilson
  • Start date Start date
J

John Wilson

Why does this happen and how can I get around it??

Brand new workbook (no data)
Create a UserForm (UserForm1)
Add a Textbox and a command button.

The only code is in the TextBox AfterUpdate Event.

Private Sub TextBox1_AfterUpdate()
Unload Me
End Sub

Crashes with an "Automation Error"??

I'm trying to use this scenario in a different workbook and need
to close the present userform to open a second one but I can't
even get the above to work in a new blank workbook.

Any ideas??

Thanks,
John
 

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

Back
Top