+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Getting a run-time 424 error when running a userform

  1. #1
    Registered User
    Join Date
    02-25-2012
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    5

    Getting a run-time 424 error when running a userform

    Hi, I am new here and have just joined , I am working on a project in excell 2007 and have created a user form but when I run it it shows and then after I add date and click submit it brings back an error sayng

    Please Login or Register  to view this content.
    then when I click on the debug it highlights the first line of code.

    Here is my code

    Please Login or Register  to view this content.
    This is the first time I have used this form and still learning,

    Any help would be great thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Getting a run-time 424 error when running a userform

    It's not recognising the sheet

    Use
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    02-25-2012
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Getting a run-time 424 error when running a userform

    Hi I have tried the code you mentioned and it still now coming back with the error

    Please Login or Register  to view this content.
    I have uploaded my file I think. I am trying to use the form to allow me to add pupils details to the pupil db sheet,

    new instructor workbook.xlsm

    Please help

    Thanks

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Getting a run-time 424 error when running a userform

    Hi,

    Maybe try this:

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  5. #5
    Registered User
    Join Date
    02-25-2012
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Getting a run-time 424 error when running a userform

    Hia abousetta that worked perfectly your a star..

    Is there anyway that the data in the boxes can disapear after clicking the submit button so I can keep adding data, currently it just stays there and I have to delete each text box area.

    thanks again

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Getting a run-time 424 error when running a userform

    You can either add another button and add this code to it:

    Please Login or Register  to view this content.
    or you can just add it to the end of the routine above before the End Sub. If you are going to add more names before you close the form, may suggest something like adding:

    Please Login or Register  to view this content.
    before the line

    Please Login or Register  to view this content.
    This will clear the form each time you click the current button. Of course then you need to create a second button to close the userform (unload) when you are done adding all the information.

    Good luck.

    abousetta

  7. #7
    Registered User
    Join Date
    02-25-2012
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Getting a run-time 424 error when running a userform

    That worked a treat using the controls code before the next bit.

    Thanks that has had me stumped for days.

  8. #8
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Getting a run-time 424 error when running a userform

    Glad I could help. If you are satisfied with the responses the please mark the thread as solved.

    Good luck.

  9. #9
    Registered User
    Join Date
    02-25-2012
    Location
    leeds
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Getting a run-time 424 error when running a userform

    Hi how do I mark this as solved.?

  10. #10
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Getting a run-time 424 error when running a userform

    The instructions are in the forum rules, and also in the FAQ

    Thanks.

+ 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