+ Reply to Thread
Results 1 to 11 of 11

Run Time Error 380

  1. #1
    Forum Contributor
    Join Date
    04-20-2017
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    118

    Run Time Error 380

    Hello there, i have a userform that has been working so far, but somehow it just gives me a error now.

    I didn't change anything in the userform.

    The error says that "could not ser the valuer property. invalid property value."

    I suspect it is when it initialise, i changes the combobox1 value. but i can´t get it fixes.

    Any help is appreciated.

    Best regards

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Run Time Error 380

    Is there a line that gets highlighted when the error occurs?

  3. #3
    Forum Contributor
    Join Date
    04-20-2017
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    118

    Re: Run Time Error 380

    yeas, its market at red in the post. last lines in the code

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Run Time Error 380

    He meant specifically which line is highlighted yellow when you get the error. May have to use F8 to step through the code to see which line.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Run Time Error 380

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    The Paper clip does not work.

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,891

    Re: Run Time Error 380

    FYI - When you are calling Userform from another sub (i.e. using UserForm.Show)... debug will only highlight the code calling Userform. To debug the userform code, you can run userform code from VBE adding breakpoints as needed. Alternately you can set option in VBE. Tools->Options->General, Error Trapping section set to "Break in Class Module".
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  7. #7
    Forum Contributor
    Join Date
    04-20-2017
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    118

    Re: Run Time Error 380

    I cant upload the workbook here, it has 5mb and a lot of information.

    The yellow line ends at "ComboBox2.Value = Sheets("Overview").Range("I3").Text"

    PS: the value of range I3 is just the name of the month, in this case "May"
    Last edited by Tpleme; 05-07-2019 at 11:50 AM.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,891

    Re: Run Time Error 380

    What value is stored in Sheets("Overview").Range("I3") and what format?

    Edit: Oh and also check that Combobox2's "MatchRequired" property is set to False.
    Last edited by CK76; 05-07-2019 at 12:00 PM.

  9. #9
    Forum Contributor
    Join Date
    04-20-2017
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    118

    Re: Run Time Error 380

    the property is set to false.

    the format is set to general.

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Run Time Error 380

    Quote Originally Posted by Tpleme View Post
    I cant upload the workbook here, it has 5mb and a lot of information.

    The yellow line ends at "ComboBox2.Value = Sheets("Overview").Range("I3").Text"

    PS: the value of range I3 is just the name of the month, in this case "May"
    Nobody asked for your entire sheet or your information, supply a sample workbook that shows the problem.

  11. #11
    Forum Contributor
    Join Date
    04-20-2017
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    118

    Re: Run Time Error 380

    I found what the problem was.

    Combobox2 gets its items from a range in a sheet.

    Since this workbook is used with various pc languages i needed to get a range of the 12 months of the year in the language of the current user.

    So i used
    Please Login or Register  to view this content.
    , and so on to give me the name of the months.

    combobox2 uses this range to make changes on some sheets (named after each month).

    The problem is that the formulas in that range don't update(I have to edit them and press enter to update)
    So i wrote in the workbook open
    Please Login or Register  to view this content.
    .

    It works this way but i think it is not the best approach. And it kinda slows down excel initialising.

+ 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] Error message: Run-Time error '1004 '; application-defined or object-defined error
    By Davasu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 06:52 AM
  2. Replies: 1
    Last Post: 10-22-2015, 05:50 AM
  3. VBA ERROR: run time error 1004: Application-defined or Object-defined error in excel 2013
    By AnanthKrishna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2015, 06:16 AM
  4. Cannot Publish Excel Pivot Chart - Run Time Error
    By crisb184 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2013, 07:04 AM
  5. [SOLVED] Error " Run-time error '1004': application defined or object defined error
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 07:26 AM
  6. run-time error ;2147023179 (800706b5) time automation error interface unknown
    By karthik72 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2012, 09:31 AM
  7. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 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