VBA

Moderators: PavlinII
Number of threads: 1614
Number of posts: 3000

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Hopefully Simple runtime error 424 ... Posted by Lensmeister on 27 Mar 2006 at 1:38 PM
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.

Report
Re: Hopefully Simple runtime error 424 ... Posted by PavlinII on 27 Mar 2006 at 2:25 PM
: 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!


Report
Re: Hopefully Simple runtime error 424 ... Posted by Lensmeister on 27 Mar 2006 at 2:44 PM
: : 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 ;)


Report
Re: Hopefully Simple runtime error 424 ... Posted by Lensmeister on 29 Mar 2006 at 12:36 PM
: : 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!
:
:
:
Hi mate ...

Ok no laffing now .... the form name was right BUT I had changed it so the form initialise was wrong !

SELECT * FROM user WHERE MYBrain > 0 Return NULL !

I might have another stoopid question soon. Thanks again for your help.


Report
Re: Hopefully Simple runtime error 424 ... Posted by Faz on 30 Mar 2006 at 3:00 AM
Forget any complicated code, just set up a simple macro that shows the userform on run, then right click on the rectangle and assign the macro. When you click on the rectangle, the macro runs and the userform shows.
Report
Re: Hopefully Simple runtime error 424 ... Posted by manishkdubey on 10 May 2007 at 2:12 AM
HI,

I am also facing the same prob. Same set of codes are running in one file. But as i insert exactly same codes in other file. runtime error24 object required reflects..

Pls help me if you have go d solution.

Regards,
Manish


: 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.
:
:

Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:21 AM
Hi,
the error may occur when the Microsoft Access Object Library is not referenced.
I suggest you trying edit the registry and reinstall Microsoft Office.

Visit for more: How To Fix Runtime Error 424

Hope this information is helpful for you.

Regards,
Aron
Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:23 AM
Hi,
the error may occur when the Microsoft Access Object Library is not referenced.
I suggest you trying edit the registry and reinstall Microsoft Office.

Visit for more: How To Fix Runtime Error 424

Hope this information is helpful for you.

Regards,
Aron
Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:25 AM
Hi,
the error may occur when the Microsoft Access Object Library is not referenced.
I suggest you trying edit the registry and reinstall Microsoft Office.

Visit for more: How To Fix Runtime Error 424

Hope this information is helpful for you.

Regards,
Aron
Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:40 AM
Hi, Regmender helps me fix the runtime error 424, I suggest try it.
Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:42 AM
Hi, Regmender helps me fix the runtime error 424, I suggest try it.
Report
Re: Hopefully Simple runtime error 424 ... Posted by aronhugos on 14 Oct 2012 at 6:43 AM
Hi, Regmender helps me fix the runtime error 424, I suggest try it.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.