+ Reply to Thread
Results 1 to 3 of 3

Debug Error 424 on UserForm Close

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Debug Error 424 on UserForm Close

    Hello,

    I have an attached UserForm here that I have been working on for awhile now and also learing from along the way. The form is working quite well for what I need but there is a problem I am running into when CLOSING the form when there is no data in it. I get a debug error 424 "Object Required". And it will not let me debug to see where it is failing, it just closes out the program.

    If I search a job "A12345" and pull the data to form and update it... everything is fine. But just opening the program and clicking "X" and selecting "YES" to close, thats when the error happens. If "No" is selected, it closes the form and returns to the worksheet and all is ok.

    Any help would be GREATLY appreciated! .... I am going NUTS with this.
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Debug Error 424 on UserForm Close

    Me personally do not like Excel Application that hides Excel, but thats just me. Try moving frmMain.Show in the workbook_open from the top of your code to the very bottom.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Debug Error 424 on UserForm Close

    Thank you VERY much... that did the trick. I was not paying attention that it was trying to run that check on workbook_open. I totally agree with you on the hiding excel. I just have too many users that input data to this and the less they see, the less they can screw up.

    Is there any way to be able to see where these errors come up?

+ 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