: : Hi all,
: :
: : Please can you help as I am completely lost.
: :
: : I have a Excel file. in it I have a sheet with nothing on it but a rectangle that is a link to a Macro.
: :
: : The macro is simple (or so I thought). Click the rectangle and it will open up a user form.
: :
: :
: : Option Explicit
: :
: : Sub Rectangle3_Click()
: : frmMatchInsert.Show
: : End Sub
: :
: :
: :
: : But guess what! ... yep runtime error 424; object required.
: :
: : The form name is frmMatchInsert so I can't see a problem. ALSO to add insult to injury I have got code for another file that is almost exactly the same (form name is the only change) and that runs ok.
: :
: : Where have I gone wrong ?
: :
: : Thanks for helping.
: :
: : Lensmeister.
: :
: :
: Hi,
: I've added empty form (UserForm1) and typed UserForm1.Show into module. Everything works fine. So I've damaged the name to xUserForm1.Show and I've recieved your error.
: Check, if your form exists in the same workbook and if it has EXACTLY name frmMatchInsert (try intellisence, if it knows it)
:
:
:
:
Pavlin II[/size]
:
:
Don't take life too seriously anyway you won't escape alive from it!
:
:
:
Thanks,
I have just tried it again and still the same thing. I even copied the name (frmMatchInsert) and pasted it in to the code to make sure.
Again Runtime Error '424' :(
I also tried earlier changing the name completely to frmTrial2 and still gave me the error :(
Think I am losing me marbles ;)