+ Reply to Thread
Results 1 to 15 of 15

error object missing when next userform should open.

  1. #1
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    error object missing when next userform should open.

    Hello,

    why isnt it possible to open the next userform here? --> error message : object rejuired ( -424)

    Please Login or Register  to view this content.
    Last edited by travelkid; 01-16-2019 at 10:00 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: error object missing when next userform should open.

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 6)

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

    Re: error object missing when next userform should open.

    Travelkid, could you provide a sample workbook to investigate please?

    The error could be a typo in the form name, but it could also have to do with the userform_initialize event in the next form...

    To attach a book:

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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.

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

    Re: error object missing when next userform should open.

    Where do you get the error?

    What do you mean the 'next' userform?
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    Okey. Arkadi was right. It was a typing error but also there is an issue with Initializing. --> It corrected the typing issue and uncommented 2 lines in the initialize area to make things work. Howver now the values from the datasheet are not shown anymore in the LB_00 box, what should acually be the case.

    Also I have another question. As one can see, it is possible to pick a line from the LB_00 box and edit those. What Im looking for is that, when I pick a line a can edit the values in the first userform and then continue to the second userform and directly edit the values there also, without having to pick out again the line...

    The example is attached.


    Best
    Attached Files Attached Files

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

    Re: error object missing when next userform should open.

    When I open either form manually LB_00 is populated.

    How are you opening the forms?

  7. #7
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    LB_00 are not userforms but list boxes...

    In the first sheet press on the button and the forms will open or what doy you mean?

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

    Re: error object missing when next userform should open.

    When I un-comment those 2 lines, LB_00 is populated without error?

    Also, if both forms load from the sheet... then maybe when you edit a line and press edit (Bearbeiten) it should save to the sheet before the second form is loaded?
    Last edited by Arkadi; 01-16-2019 at 12:23 PM.

  9. #9
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    Well, if ['.ColumnWidths = "40;150;150;70;50;150;70;70;70;70;120;70;70;70;70;70;70;70;70;70;70;70;70;70;70;70,70"] is uncommented then it works.. not quiet sure yet the columnwidths stans for.. I negelct, not the most important issue right now.

    Yes saving before the next userform opens is a godd thing. I guess at the end it should be possible to navigate back and forth to make changes. Also it may become an option that the list box is not shown any more on userform 2 but just the values..

    Best and thanks. I would really appreciate if that one was solved.

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

    Re: error object missing when next userform should open.

    Quote Originally Posted by travelkid View Post
    LB_00 are not userforms but list boxes...

    In the first sheet press on the button and the forms will open or what doy you mean?
    Eh, I know they are listboxes.

    When I open the userforms manually those listboxes are populated, as the first one does when I open it using the button on the first sheet.

  11. #11
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    ... Sorry I dont get your point?

  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: error object missing when next userform should open.

    When I open the userforms the listboxes are being populated and I get no errors.

    In your original post you said you were getting an 'object required' error, then in subsequent posts you mentioned the listboxes not being populated.

    So I'm a little unsure what the problem is, did I miss something in an earlier post?

  13. #13
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    Ah okey, yes this one was solved. I added another question:
    "Also I have another question. As one can see, it is possible to pick a line from the LB_00 box and edit those. What Im looking for is that, when I pick a line a can edit the values in the first userform and then continue to the second userform and directly edit the values there also, without having to pick out again the line..."

    Best, Matthias

  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: error object missing when next userform should open.

    I guess part of the problem is our lack of understanding exactly what you want. Since the 2 forms load exactly the same data, I am confused by the overall book.

    Why do all the buttons set LB_00's listindex to -1? If you leave an item selected in form1 then you could in the userform activate for form 2 set the listindex of LB_00 in form2 to the same as LB_00 on form1?

  15. #15
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: error object missing when next userform should open.

    I know the workbook does not make a lot of sense. This is not the endversion.. Anyway your idea with leaving an item selected sounds good to me.. How would I have to do this?

+ 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. [SOLVED] 424 Object Missing Error With a DTPicker
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2015, 02:02 AM
  2. [SOLVED] Application/Object-Defined Error. What am I missing?
    By gedwards913 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2015, 03:11 PM
  3. Open Workbook .Copy to Wb Causes Object Error 424
    By iamafiqing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 08:41 PM
  4. [SOLVED] 424 Object required error when calling a UserForm from another
    By rybussell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2013, 01:16 PM
  5. Complile Error - Missing object or type
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2013, 06:38 AM
  6. Open method of object failed error
    By maw230 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 09:19 AM
  7. Replies: 0
    Last Post: 01-10-2006, 10:40 PM

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