+ Reply to Thread
Results 1 to 4 of 4

Could not set the RowSource property,invalid property value

  1. #1
    Registered User
    Join Date
    03-04-2023
    Location
    Kenya,Nairobi
    MS-Off Ver
    2021
    Posts
    1

    Could not set the RowSource property,invalid property value

    Am designing an inventory system that will help me manage a shop business.But am stack,am trying to write a code that will display the list of purchased items and sold item referering to the excel sheet,but when i run the code,i get a message Run time error 380:Could not set the RowSource property,invalid property value


    below are the codes
    Please Login or Register  to view this content.
    absd.jpg

    kindly assist
    Last edited by simiyus; 03-04-2023 at 08:10 AM. Reason: to add excel sheet instead of a photo

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Could not set the RowSource property,invalid property value


    Hakuna matata : as the name contains a space so you must add the name between quotes like you can see in cell formula …
    Last edited by Marc L; 03-04-2023 at 08:23 AM. Reason: typo in my Swahili ...

  3. #3
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Could not set the RowSource property,invalid property value

    Hi, simiyus.
    To avoid such errors, instead of using the last row you should use the range of your data (without the titles). For example like this:

    Please Login or Register  to view this content.
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

  4. #4
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Could not set the RowSource property,invalid property value

    However, if you want to display the information for only rows 5 and 6 in the listBox, then you should not use the RowSource property but load that information individually via the List property.

+ 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. Could not set the RowSource property. Invalid Property Value error when switching bet
    By sathyaganapathi in forum Access Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2021, 06:54 AM
  2. [SOLVED] Error 381Could not set the List property. Invalid property array index
    By desonny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2020, 08:33 AM
  3. Replies: 5
    Last Post: 06-02-2020, 04:56 PM
  4. [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
  5. 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
  6. 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
  7. [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

Tags for this Thread

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