+ Reply to Thread
Results 1 to 11 of 11

could not get the list property invalid argument - VBA Error code

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    could not get the list property invalid argument - VBA Error code

    What am i doing wrong here?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: could not get the list property invalid argument - VBA Error code

    Which line is returning the error?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: could not get the list property invalid argument - VBA Error code

    Where/when do you get the error?

    PS Why are you calling the UserForm_Initialize sub multiple times?

    If it's to (re)populate the listbox you should move the code to populate the listbox to a separate sub and call that when required rather than calling the event.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: could not get the list property invalid argument - VBA Error code

    It isnt stating which line is generating the error, just pops up with the error message.

    I got this code from anothe site, works fine when list box is populated with cells A1:J100... I move it to another workbook and populate it with cells U2:AD1001 and I get this error?

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

    Re: could not get the list property invalid argument - VBA Error code

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  6. #6
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: could not get the list property invalid argument - VBA Error code

    right when the workbook opens, a login screen will appear;

    Username: Matt Brown
    Password: 1234

    Thanks guys!

    File is over 1mb so had to upload on another site: http://www.filedropper.com/testpagev1 Rest assured it is safe!

  7. #7
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: could not get the list property invalid argument - VBA Error code

    And sorry forgot to mention, it is the mattbrownoverview userform in VBA

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

    Re: could not get the list property invalid argument - VBA Error code

    I'v downloaded the file, now what do I need to do to recreate the problem?

  9. #9
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: could not get the list property invalid argument - VBA Error code

    in VBA, view the userform mattbrownoverview, when you run it you will get the error code

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

    Re: could not get the list property invalid argument - VBA Error code

    The only error I get when running that form is here,
    Please Login or Register  to view this content.
    and is because there is no sheet with the tab name Sheet19.

    There is however a sheet with the codename Sheet19 so if I change the above to this the error is fixed.
    Please Login or Register  to view this content.
    Can't seem to generate any other errors when playing with the form.

  11. #11
    Registered User
    Join Date
    01-29-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: could not get the list property invalid argument - VBA Error code

    Legend! I knew it would be something so small. Thanks ever so much man

+ 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. runtimer error 380, could not set the list the list property, Invalid property type
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2015, 12:19 PM
  2. [SOLVED] Getting compile error 'Wrong number of argument or invalid property assignment'
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-17-2014, 07:50 AM
  3. Runtime error 381: Could not set the list property.Invalid property array index
    By rohith4prithvi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2014, 10:24 PM
  4. [SOLVED] Excel run-time error '381': Could not set the List property. Invalid property array index
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-20-2012, 12:48 PM
  5. Replies: 3
    Last Post: 04-28-2010, 05:54 PM
  6. Error: Wrong number of argument or invalid property assignment?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 PM
  7. Runtime Error 380 – Could not set the list property. Invalid property value
    By BernzG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2005, 05:10 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