+ Reply to Thread
Results 1 to 3 of 3

Run-time error '380': Could not set the ControlSource property. Invalid property value.

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Run-time error '380': Could not set the ControlSource property. Invalid property value.

    Excel and VBA changes it's behavior: first it runs OK, but after a couple of runs it reports: Run-time error '380': Could not set the ControlSource property. Invalid property value. I have to turn excel off and on, then it works for a while again.
    The feeling I'm having is VBA does not consider the control as being a control after some hidden property is changed due to I don't know what kind of event, cannot prove.

    I wonder somebody could tell me what kind of workaround I can use to neutralize this phenomenon.

    In xl2007 there is a UserForm that picks cells content from a row of a sheet and populates texboxes, optionbuttons, whatevers by the following method:

    Please Login or Register  to view this content.
    Another example, using another type of populating strategy, throwing the same run-time error after some ok runs:

    Please Login or Register  to view this content.
    Previously worked aok. Users go back filling the sheet cell by cell. So inefficient, it breaks my heart.

    Would appreciate any kind of direction.
    Regards,

    Gabor

    Protect trees.. maybe one day we need to climb back....

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Run-time error '380': Could not set the ControlSource property. Invalid property value

    I'd recommend you don't use controlsource at all-simply populate the controls in code and write any data back in code.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Re: Run-time error '380': Could not set the ControlSource property. Invalid property value

    Can you advise what you mean by populate the controls with code?
    What is the event that triggers the data going back on the sheet? Something like Private Sub TextBox1_Change() ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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