+ Reply to Thread
Results 1 to 6 of 6

Run Time Error-380 "Could not set the value property. Invalid property value"

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    12

    Run Time Error-380 "Could not set the value property. Invalid property value"

    [QUOTE=cijo] I am having problem with my same excel workbook.

    While clicking Combo-box of "Filter by Month/Year" and then Click Combo-box of "Filter by Vessel" some values, list box gets populated. When I click listbox the value, I get Run Time Error-380 "Could not set the value property. Invalid property value"

    Plz assist

    Find attached my excel sheet which I am working on.

    Follow below instructions for working on my userform:

    a) On opening the workbook, a userform appears. Select username value as 'Others' and then press button 'Enter'

    b) Other userform will appear. Click Combo-box of "Filter by Month/Year" value "October:2012". Then Click Combo-box of "Filter by Vessel" value "Jag Lalit. Then list-box will show some value. When I click the listbox I get the error.

    d) Click Exit button to close the excel workbook.

    To open code:

    a) On opening the workbook, a userform appears. Click button 'Admin' and then type admin on the textbox that will appear then,and then press 'OK' button.

    b) Workbook will be visible. Then you can go to code as usual.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Run Time Error-380 "Could not set the value property. Invalid property value"

    I think that the problem might be that you have the method Rows in acting on the Employee range. As the Employee range is a single cell, you should just use Offset directly on it.

    e.g.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,621

    Re: Run Time Error-380 "Could not set the value property. Invalid property value"

    Combobox4 isn't enabled when you get the error.

    However setting it to enabled doesn't appear to solve the problem.

    The only way I could find to stop the error was to replace the existing comboboxes with new ones.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Run Time Error-380 "Could not set the value property. Invalid property value"

    I replaced the code UserForm1.ComboBox4.Value = Employee.Offset(0, -5).Value. The problem still persists.

  5. #5
    Registered User
    Join Date
    08-21-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Run Time Error-380 "Could not set the value property. Invalid property value"

    Which all comboboxes should I replace? All of them in the workbook?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,621
    Remove Combobox4 and Combobox5.

    Then add 2 new comboboxes in the same place.

    Rename the new comboboxes Combobox4 and Combobox5.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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