+ Reply to Thread
Results 1 to 18 of 18

Combo Box Code Stopped Working

  1. #1
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Combo Box Code Stopped Working

    Hi - this was working fine yesterday morning and for several months prior. Today, it breaks on any code relating to the combo boxes on the user form. Nothing has changed in the code or on the form.

    Please Login or Register  to view this content.
    Any ideas why code would stop working for combo boxes?
    Last edited by ker9; 05-07-2014 at 01:21 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    What do you mean by "breaks"? Just stops? Causes an error (if so, what)?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    Sorry, I should have added this.
    Using debuger it stops on the first line of that routine
    Run-time error '380':
    Invalid property value

    Just started doing it yesterday for no apparent reason
    VB7
    Last edited by ker9; 05-01-2014 at 08:59 AM.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    If nothing has been changed on the form or in the code, I'd start by closing Excel, searching for any .exd files (these are temp files relating to userforms and controls) on your computer - you need to include hidden folders in the search - and then deleting them. Then try it again.

  5. #5
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    I cleared the .exd files. No change.
    My VBA references appear to be fine (I have a snapshot I refer to)
    I'm set to break on unhandled errors (not all errors)
    I have a master version of this file, which I copied and had the same problem.
    I have a previous version of this file, which now breaks in the same place.

    What could have changed?

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    Where did you clear the .exd files from? There should have been at least 2 folders.

    Can you post a copy of the file, after removing any confidential data?

  7. #7
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    There were several .exd files in the users/me/AppData/Local and AppData/Roaming
    It's a monstrous file with lots of confidential stuff in it.
    The weirdest thing is it was working - now none of the versions work.
    We have a copy of it on SharePoint and that version isn't working either. It doesnt work for someone besides just me.

    I tried deleting one of the combo boxes and recreating it. No change, doesn't work.

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    Did you have any windows/office updates installed in the last couple of days?

  9. #9
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    Good question - I'm emailing IT right now. They do this stuff in the background and we don't usually know about it.

  10. #10
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    It would appear that IT has done something - I don't know what, not sure if they know. But the reports that worked yesterday do not work today for me or anyone else on any other PC.
    Any suggestions appreciated. If we figure it out, I will post it.
    Thank you!

    EDIT: Is it possible some dll or something like that got deleted?
    Last edited by ker9; 05-01-2014 at 12:38 PM.

  11. #11
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    Unlikely - I think the errors would be very different. Usually this sort of thing is caused by a DLL update and deleting the .exd files cures it.
    You could try unregistering and re-registering the fm20.dll

  12. #12
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    IT has told me that they have not made any changes.

    I moved a copy of the master original to my home computer and I have the exact same problem. It will not do anything with the combo boxes. The items referenced below do exist.

    Please Login or Register  to view this content.
    This code was working and now it won't work - same as code posted above.
    This is crazy. I've been fussing with this and searching the internet almost all day.

  13. #13
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    Unregistering and re-registering the FM20.dll seems to have fixed the problem! Wish I would have tried it sooner. Why would this stop working all over the company?

    EDIT: Unfortunately, it seems like it only works for one run, then it's busted again. If I unregister/re-register again, then it works once.
    Any ideas on that?
    Last edited by ker9; 05-01-2014 at 03:34 PM.

  14. #14
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    I'm not sure. Try renaming the file and then running a repair of Office to get a new one put in place.

  15. #15
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    I've renamed the file, done a repair on Office. Open Excel and it works until I close Excel. If I open again, it stops working. These combo boxes are on a user form (not a sheet). Other Excel files with combo boxes on user form or on sheet are working. The file with the problem has not been modified since last September, but it stopped working for everyone in the Company. The master file also stopped working and two other files that were based on this file stopped working.

    IT ran a script (or something) the night before it stopped working. This script is related to Outlook/email - it removes all .pst files and any emails older than 15 months. They swear it did not do anything that should cause this problem.

    We are still trying to figure this out so if anyone has any ideas they would be appreciated. Thanks!

  16. #16
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Combo Box Code Stopped Working

    I would try exporting the form, removing it from the workbook and saving the file, then register the fm20.dll and re-import the form. I'd also suggest running Code Cleaner on your project.

    If that doesn't work, I can only suggest rebuilding the whole form in a new project, and then importing it. If that fails too, it may require rebuilding the workbook.

  17. #17
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    Hi - thank you. I will try that. I don't understand how every saved version of this report (in two completely different and unrelated locations-and different versions old/new) could go bad overnight and stop working for everyone. It's very weird. Anyway, I'll let you know how it goes. Thanks very much for your help!

  18. #18
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Combo Box Code Stopped Working

    The problem was apparently unrelated to combo boxes, but that is where it appeared to keep bombing.

    The following runs when the form initializes:

    Please Login or Register  to view this content.
    Those values that it attempts to insert are invalid as the values in the table only go through 4/2014. So it broke on 5/1/14. Once the table was updated to go through 2015 it started working again. To avoid this in the future, the table was updated through 2017 and a message box was added to workbook open that will appear on 5/1/18 notifying the need to update the table.

    Thank you for all your help!

+ 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] Why has my code stopped working?!
    By JamesFletcher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2013, 07:07 AM
  2. Excel code stopped working
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2010, 07:34 AM
  3. Excel 2007 : Macro Code Stopped Working
    By stevo_300 in forum Excel General
    Replies: 5
    Last Post: 04-06-2010, 07:57 AM
  4. Code stopped working
    By kinleyr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2010, 12:25 PM
  5. Code stopped working
    By chris46521 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2006, 10:05 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