+ Reply to Thread
Results 1 to 16 of 16

Userform Not Loading

  1. #1
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Unhappy Userform Not Loading

    Hey guys I'm pretty new to VBA and trying to learn it on the fly. I'm working on a userform. However I keep getting the run time error 424 object required. I've got the code:

    Sub Button4_Click()

    UserForm2.Show

    End Sub


    Another thing is that this userform populates after another one. So we type info into the first userfrom and it spits out this info. Then there is a second one that updates and revises any info you wanna change. That's the one that's not working. I hope you guys can help me.

    Thanks!!

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Userform Not Loading

    Either the form isn't called Userform2, or there is code in the Initialize and/or Activate events of that form and that is where the real error is. I suggest you set the error handling options (Tools - Options - General tab in the VB Editor) to 'Break in class module' and then run the code again.

  3. #3
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    Alright so when I did that the debugger didn't take me to that original line of code. Now it keeps highlighting other lines. What is the issue with those? Do those lines need to be deleted, or what needs to happen so this thing loads?

    Thanks!!

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Userform Not Loading

    Impossible to say without seeing the code for the userform

  5. #5
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    So that's it. Just Impossible? I'm sure one of you guys can figure this out. Whoever helps me with this gets lunch on me. If you're within somewhere that stuff can get delivered It's all yours. I just need this fixed guys

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Not Loading

    Yes we can help... but not without seeing the code (in userform2 I would think) to look for the problem. Any chance you can remove sensitive data and attach the file?
    Last edited by Arkadi; 07-13-2018 at 12:06 PM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: Userform Not Loading

    It's highlighting lines because they have errors. As others have said, it's hard to fix those without being able to see the code. It's VBA, not magic.

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Userform Not Loading

    Evan..Either post a copy of the code (with code tags) in a reply message or go to manage attachments in advanced edit and attach a copy of the file

  9. #9
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    Alright It's being difficult and taking a long time to attach I don't know why honestly first day on this site. Do you have an email I'll email it to you it's just a normal excel file.

  10. #10
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    Alright I think I've attached this properly.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    Alright guys I've attached it. The revise option isn't coming up you'll see what I'm talking about when you open it.

    Thanks again so much!!

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

    Re: Userform Not Loading

    When I click the button labelled 'Revise This Quote' I get an error on this line in the UserForm_Initialize event.
    Please Login or Register  to view this content.
    The error message is 'Object required' which suggests to me that you don't have a control with the name WetStamp on the form.

    If I comment that line out I then get a similar error here,
    Please Login or Register  to view this content.
    and here.
    Please Login or Register  to view this content.
    Think you might want to check the names of the controls on the form.
    If posting code please use code tags, see here.

  13. #13
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    You are a god send. I figured it out. I didn't think i would ever figure out, so many thanks your way.

  14. #14
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Not Loading

    Norie did you get your free lunch? Lol.
    EvanJones2... I'm glad your issue was resolved... Thanks for posting that workbook so one of us could investigate

  15. #15
    Registered User
    Join Date
    07-13-2018
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    16

    Re: Userform Not Loading

    Shoot me that venmo norie your next lunch will be on me

  16. #16
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Userform Not Loading

    I was kidding re the lunch thing.... I doubt norie expected it... We do this because we are happy to help others when we can

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Progress bar for loading Userform
    By idinuv in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-22-2014, 11:15 AM
  2. .additem loading bug on userform
    By dems in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2010, 06:22 AM
  3. Loading userform
    By tian0020 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2007, 01:57 AM
  4. [SOLVED] Loading a Userform
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2006, 04:40 AM
  5. Loading Userform
    By Steven Cheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2005, 03:20 PM
  6. [SOLVED] Loading UserForm gives error
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2005, 04:05 AM
  7. [SOLVED] Loading UserForm on start up.
    By Kobus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2005, 07:06 AM

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