+ Reply to Thread
Results 1 to 17 of 17

Runtime error 424 Object Required - HELP ME

  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Unhappy Runtime error 424 Object Required - HELP ME

    hi, when i run macro ,i have this error keeps poping up "Runtime error 424 Object Required ".

    When i click debug they pointing to ==> UserForm1.Show

    pls .help me!

    Note: Below code is taken from One of my MOUDLE


    Please Login or Register  to view this content.
    Last edited by joh46k; 05-09-2013 at 02:30 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Runtime error 424 Object Required

    THis is a VBA question, I will move it to that forum for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required

    @FDibbins: Thank you ! PLEASE HELP ME .. that error giving me a headache.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Runtime error 424 Object Required - HELP ME

    Check whether you are having the UserForm1

    If suppose you named the userform with different name then just mention the userform name something like this...

    Please Login or Register  to view this content.
    Just select the userform and press F4 to get the properties window and see the name provided for the userform.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    Sixthsense : please check my post #1. I have userform and i did put "UserForm1.show"

    BUT still have that errror

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Runtime error 424 Object Required - HELP ME

    Quote Originally Posted by joh46k View Post
    please check my post #1. i did put "UserForm1.show"
    Please read the whole content which I posted in Post #4

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Runtime error 424 Object Required - HELP ME

    Do you have any code in the userform's Initialize or Activate events?

    If you do it'll be in the userform module.
    If posting code please use code tags, see here.

  8. #8
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    Quote Originally Posted by :) Sixthsense :) View Post
    Check whether you are having the UserForm1

    If suppose you named the userform with different name then just mention the userform name something like this...

    Please Login or Register  to view this content.
    Just select the userform and press F4 to get the properties window and see the name provided for the userform.
    YES , i have UserForm1. I never named it with any other name just "UserForm1"

  9. #9
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    Quote Originally Posted by Norie View Post
    Do you have any code in the userform's Initialize or Activate events?

    If you do it'll be in the userform module.
    @Norie: I have two userform's Initialize .

    one is in the module (modules) and another one is in the UserForm1 (Forms)
    Last edited by joh46k; 05-09-2013 at 02:32 AM.

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Runtime error 424 Object Required - HELP ME

    Quote Originally Posted by joh46k View Post
    YES , i have UserForm1. I never named it with any other name just "UserForm1"
    Then it should work

    Sorry I don't have any other suggestions

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Runtime error 424 Object Required - HELP ME

    Only one is an event, the one in the userform module.

    The one in the standard module is a sub with the name UserForm_Initialize.

    It's the code in the userform Initialize that could be causing the problem.

    Can you post that code?

  12. #12
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Post Re: Runtime error 424 Object Required - HELP ME

    @Norie : Userform intialize is all the way bottom. pls check it! .


    Please Login or Register  to view this content.

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Runtime error 424 Object Required - HELP ME

    in your vbeditor click tools-options and then select the general tab and change the error trapping setting to "break in class module" and then run the code again and see which line really causes the problem
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  14. #14
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    Quote Originally Posted by JosephP View Post
    in your vbeditor click tools-options and then select the general tab and change the error trapping setting to "break in class module" and then run the code again and see which line really causes the problem

    Thanks !.... now YELLOW Line pointing to this "Me.Label2.Caption = Sheet2.Range("A1").Value ''Last Update Code "



    Please Login or Register  to view this content.

    Note: To see full code .pls refer to post #12
    Last edited by joh46k; 05-09-2013 at 03:06 AM.

  15. #15
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Runtime error 424 Object Required - HELP ME

    That means you either don't have a control named Label2 on the form or there is no worksheet with the codename Shret2, or both.

  16. #16
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    @Norie @JosephP : yea, NOW after they point to the correct error . i know where i made the mistake
    I accidentally, delete the sheet2
    Last edited by joh46k; 05-09-2013 at 03:27 AM.

  17. #17
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Runtime error 424 Object Required - HELP ME

    Now its working .Thank u guys for quick reply !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1