+ Reply to Thread
Results 1 to 14 of 14

Working Code Suddenly Broken: Run-Time Error '32809'

  1. #1
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99

    Working Code Suddenly Broken: Run-Time Error '32809'

    I just upgraded to 2007. I've sucessfully run this macro 100's of times with no problems. Other than upgrading to 2007 I've made no further changes to system or code. Code even worked the day I upgraded, but suddenly today, it doesn't work.

    The code is supposed to enable a command button on a sheet. The code is inside that sheets private codes, and I've double and triple checked the naem of my command button.

    Please Login or Register  to view this content.
    The macro refuses to fire, and everything i've tried to do just puts the runtime error on my screen. Please help with this

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The macro refuses to fire ...
    You sure about that? Set a breakpoint, or insert the line Stop as the first line of code, and nothing happens?

    Are events enabled?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    Quote Originally Posted by shg View Post
    You sure about that? Set a breakpoint, or insert the line Stop as the first line of code, and nothing happens?

    Are events enabled?

    I've tried clearing everything out and just doing a debug.print and a message box and they wont even fire. Its like worksheet change isn't working. And now if I manually run the macros normally triggered by clicking the disabled buttons, they are failing too... Here is one:

    Please Login or Register  to view this content.
    And its debugging on line one, just switching sheets with Run-time error '1004' Select mehod of worksheet class failed. Again, these all worked fine, and frequently, on a daily basis for almost a year,and now suddenly no dice.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I've tried clearing everything out and just doing a debug.print and a message box and they wont even fire. Its like worksheet change isn't working.
    In the Immediate window, enter
    Please Login or Register  to view this content.
    If that doesn't work, close Excel, reboot, and try again.

    And try it in Excel 2003.

  5. #5
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    no dice, and i no longer have excel 2003. I withheld as long as I possibly could, but work forced me. Thing is, this WORKED the other day even in 2007. I just saved it and now its not working suddenly. I dont' even know why it wont switch to "Summary" or "MySummary"

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Just this workbook or any workbook?

  7. #7
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    Well I just went into a slightly older version (just a different month - same code) to see if it had the same problem. The Sort button (there are 4 on the page) forced me to change its name due to some ambiguous thing, and I did. The macro runs perfectly on that sheet... I'm at a loss.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Don't think I can help without seeing the workbook, sorry.

  9. #9
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    and now that i've saved it, its not workign anymore. same errors.

  10. #10
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    Ok, attaching. The only change I've had to amke is renaming the sort button to Sort_All, since it was ambiguous otherwise. Not only are change events NOT triggering, when I run the maros like Clear and Sort Switcher manually, they bug when switching back to the "Summary" sheet with Run-time error '32809': Application-defined or object-defined error.

    I can't even do a simple Sheets("Summary").activate in the immediate without getting this error.

    sheet password is wfb1852
    Last edited by Tirren; 01-02-2009 at 06:36 PM.

  11. #11
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    ... so I get so frustrated I reboot and take a nap... i come back, and its working properly...

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Look like this was a namespace collision between the ActiveX controls More and Less and the subs of the same name. I changed the names to btnClear, btnSort, btnLess, & btnMore, adjusted the code accordingly, and it ran.

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Guess I could attach the file, sorry.
    Last edited by shg; 01-07-2009 at 12:17 PM.

  14. #14
    Registered User
    Join Date
    10-20-2014
    Location
    The Netherlands
    MS-Off Ver
    2007
    Posts
    29

    Re: Working Code Suddenly Broken: Run-Time Error '32809'

    I came across this problem myself and it seems to be a bit random... the sheet/code/workbook (or whatever) somehow gets corrupted.

    To fix it, I copied the problematic sheet, deleted the original and renamed the copy back to the original.

    (FYI, I am responding to this old thread in case someone else has this problem and needs a potential solution - obviously I cannot guarantee this will work for everyone, but it's always worth a try. )

+ 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