+ Reply to Thread
Results 1 to 4 of 4

Run Time Error Issue- Improper Property Value

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Run Time Error Issue- Improper Property Value

    I've run into a problem that has me stumped. Run the attached file ...

    Click "Open Form" (top of screen)
    In "Search" field (top of form) enter the letter "J"

    I receive a Run-Time error 380 (refer to attached image)

    Oddly, if I click "Fill All Records Into Listbox" first, then click "Unload Listbox" ... then enter a search phrase in
    the "Search" field, the program runs as intended.

    I suspect by filling the listbox with all of the records first, prior to doing a search, that places all of the records into
    memory which is what the program then uses when doing a follow up search and avoiding the error.

    How do I correct the programming error without first displaying all of the records in the Listbox when the form is
    initialized ?

    Thank you for all of your assistance.

    ps: I apologize for having to zip the file .... I don't understand why it is almost 2 mb for such a simple project.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-09-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Run Time Error Issue- Improper Property Value

    Hi Logit,

    For an unbound data source, there is a 10-column limit (0 to 9)

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Run Time Error Issue- Improper Property Value

    Is only limit when you use AddItem. If you will load array into List or Column property this limit will not apply.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Run Time Error Issue- Improper Property Value

    Thank you for your assistance. I was not aware of the Listbox limitation. This is a self-learning exercise for me.

+ 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. Replies: 1
    Last Post: 08-30-2014, 03:23 AM
  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. Replies: 2
    Last Post: 06-11-2012, 03:03 PM
  6. Run-time error '440' Could not set the ListCursor property.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2011, 05:47 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