+ Reply to Thread
Results 1 to 4 of 4

User Form ListBox error 381 "could not set the list property"

  1. #1
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    User Form ListBox error 381 "could not set the list property"

    Please Login or Register  to view this content.
    The named range "PAID" is a dynamic range.
    There is no error if this named range has more than one row (where each row has a value),
    which in other words, the ListBox1 is populated without error.

    But if this named range has only one row (with value),
    it throw me an error 381 "could not set the list property".

    I've tried something like this :

    Please Login or Register  to view this content.
    And it still gives me an error, this time Error 1004 "method range of object global failed".

    How do I resolve the problem ?

    Any kind of respond would be greatly appreciated.
    Thank you in advanced.

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    re: User Form ListBox error 381 "could not set the list property"

    For the time being, I tried another code like this

    Please Login or Register  to view this content.
    Although now it doesn't give me an error,
    (in other words, the ListBox is populated without error although the named range is only one row),
    but I'm not so sure whether the code is correct.

    Thank you.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    re: User Form ListBox error 381 "could not set the list property"

    Try this, put your data in column 'A' row 2 downwards.
    I could not understand why you were using Transpose or List ?????
    torachan.


    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    re: User Form ListBox error 381 "could not set the list property"

    Hi torachan,
    Thank you for your respond.
    Quote Originally Posted by torachan View Post
    I could not understand why you were using Transpose or List ?????
    Because the code I make is just copy paste from the code I found in the internet, torachan.

    Thank you for your code.
    It worked very well.

+ 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] User Form, On every submitted entry, receive an error "Invalid Property Value"
    By NikhilDixit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2017, 08:57 AM
  2. [SOLVED] code for listbox give could not set the list property . invalid property value
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2017, 10:22 AM
  3. 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
  4. User Form ListBox - Find Records (ListBox Populating Issue)
    By LONeillSSC in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-20-2015, 12:06 PM
  5. [SOLVED] User form - Can't set ControlSource property. Invalid property value.
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-26-2013, 05:29 AM
  6. [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
  7. User form with listbox that will list the contents of a folder
    By ct56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2010, 11:53 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