Cannot open userform

  • Thread starter Thread starter Sam Kuo
  • Start date Start date
S

Sam Kuo

Hi

I had a subroutine that opens a userform as shown below and it was working
fine:
Sub OpenUserForm ()
UserForm1.Show
End Sub

But after I worked on others codes last night, the subroutine now cannot
open the userform due to:
"Run-time error '-2147024809(80070057)': Could not find the specified object."

I didn't make any change to the userform itself. I also tried debugging the
VB code but couldn't find any other error. What could have caused this and
how do I fix it?
 
Back
Top