+ Reply to Thread
Results 1 to 7 of 7

VBA Runtime error 70. Could not set the list property

  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    VBA Runtime error 70. Could not set the list property

    Hi All

    I am getting an error with the following line of code....Can anyone assist. First time I'm working with a ListBox in this manner. I have uploaded my workbook. What I'm also trying to achieve is edit the listbox and then update workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA Runtime error 70. Could not set the list property

    Hi again,

    You can not assign an array to a listbox that has its Rowsource property set. You might alter your Initialize routine thus
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: VBA Runtime error 70. Could not set the list property

    Man oh man you guys are good at this stuff.....

    May I ask how I will go about updating the corresponding sheet...Would it just be a Refresh

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA Runtime error 70. Could not set the list property

    If you change data on the sheet, all you need do is run similar code again to reset the List property.

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: VBA Runtime error 70. Could not set the list property

    Sorry xlnitwit

    Don't think I explained myself. If once after I've updated the listbox, how would I get the updated listbox information into the Sheet

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA Runtime error 70. Could not set the list property

    You need only reverse the code to write the listbox array back to the sheet
    Please Login or Register  to view this content.

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: VBA Runtime error 70. Could not set the list property

    Thanks....Just figured it out.

    I love this site. You all rock!!!!

+ 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 380 - Could not set the Property Value. Invalid Property Value
    By natks78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2015, 10:51 PM
  2. 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
  3. runtime error 1004 unable to get match property
    By AAvcal71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2014, 03:10 PM
  4. 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
  5. Replies: 2
    Last Post: 06-24-2010, 01:57 AM
  6. Runtime error 1004 - unable to set Visible property of Worksheet c
    By SueJB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 10:05 AM
  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