+ Reply to Thread
Results 1 to 7 of 7

Workbook_Open event crashes Excel?

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Workbook_Open event crashes Excel?

    When I open the file, Excel crashes, reboots & repairs the file. It then highlights the line: Worksheets("Calculator").Activate. I have a sheet named "Calculator"? I have tried deleting the sheet and inserting a new one but still have the same problem?

    Thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Workbook_Open event crashes Excel?

    When I step through the code I receive this error message: "Run-time error - 32809; Application-defined or object-defined error"

  3. #3
    Registered User
    Join Date
    12-12-2014
    Location
    PL
    MS-Off Ver
    2010
    Posts
    55

    Re: Workbook_Open event crashes Excel?

    Just a wild guess but perhaps the file is corrupt? Have you tried copying the code to a new file and testing if it works?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,329

    Re: Workbook_Open event crashes Excel?

    That error number sounds like a problem with activex caused by the December updates. Does your workbook use ActiveX controls?
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Workbook_Open event crashes Excel?

    Thank you for your reply. I was using ActiveX controls but have deleted them and the code
    associated with the controls. When I open the file the run-time error is 57121? Should I avoid using ActiveX controls and could the problem be with the User forms?
    Thanks in advance

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,329

    Re: Workbook_Open event crashes Excel?

    Generally speaking, yes avoid activex if you can. In my experience, once you have a workbook like that, you have to recreate the sheet(s) that had the control(s). Simply removing the controls and code doesn't work.

  7. #7
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Workbook_Open event crashes Excel?

    Once again, thanks very much for your reply. I will delete the sheet & re-create another one. Hopefully that works.

+ 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] DblClick event on listbox crashes Excel when I move the listbox as a result of the event
    By feanturi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2022, 11:38 AM
  2. Excel crashes when executing CreateEventProc for Worksheet_Change event
    By 1man in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-03-2014, 05:46 AM
  3. Workbook_Open Event
    By inwalkedbud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2007, 09:38 AM
  4. Workbook_Open Event
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2007, 08:58 AM
  5. [SOLVED] Workbook_Open() Event
    By Bill Martin in forum Excel General
    Replies: 9
    Last Post: 01-13-2006, 04:30 PM

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