+ Reply to Thread
Results 1 to 3 of 3

runtimer error 380, could not set the list the list property, Invalid property type

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    runtimer error 380, could not set the list the list property, Invalid property type

    Hi Guys

    I am getting the above error message at the below line marked red. When I debug then the error comes when value of K is 10.

    Hope any of you can help me to figure it out.

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,805

    Re: runtimer error 380, could not set the list the list property, Invalid property type

    I don't see anything obvious but what are these values at the point where the error occurs:

    ListBox1.ListCount
    i

    Can you attach your file?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: runtimer error 380, could not set the list the list property, Invalid property type

    1) you probably add too many rows to your listbox, because you .Additem k times (shall be only once by row)
    2) may be as spoted above .ColumnCount would help. but ... see below:
    3) I had similar problem some time ago, and as far as I remember with 11th column (k=10) too, and the cure was to load data into array and then assign the whole array to list at once, so something like:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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. 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
  2. Run-time Error '380': Could not set the RowSource property. Invalid property value
    By Rem0ram in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2013, 03:57 PM
  3. [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
  4. Run Time Error-380 "Could not set the value property. Invalid property value"
    By Cijo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2012, 04:04 AM
  5. [SOLVED] Invalid property array index - Dropdown list
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2012, 11:20 AM
  6. Replies: 2
    Last Post: 06-11-2012, 03:03 PM
  7. Replies: 2
    Last Post: 06-24-2010, 01:57 AM
  8. 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