Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Workbook_Open() fails unless much-used workbook name changed

Latest post Mon, Jun 1 2009 6:09 AM by cjakeman. 2 replies.
  • Fri, May 29 2009 3:53 AM

    • cjakeman
    • Top 500 Contributor
    • Joined on Thu, Apr 9 2009
    • Posts 3
    • Points 47

    Workbook_Open() fails unless much-used workbook name changed

    I have a workbook in the XLSTART folder where I keep personal macros. I've used it daily for over 2 years but recently it stopped auto-loading. Also, if I loaded it manually, it reported an error in code that used to run fine. I tried the wonderful CodeCleaner but that had no effect. Finally I discovered that the name of the spreadsheet was compromised in some way. If I rename it from extension.xls to extension1.xls, then the problem goes away.

    Has anyone seen anything like this before. Is there a record of "extension.xls" somewhere that has become corrupted and which I can wipe out?

    Thanks,

    Chris

    • Post Points: 21
  • Fri, May 29 2009 5:06 AM In reply to

    Re: Workbook_Open() fails unless much-used workbook name changed

    Check that you don't have an alternate startup location specified as well:

     

    Tools> Options> General> At startup, open all files in:

     

    What happens if you delete the workbook (take a copy first) and open Excel?

    • Post Points: 21
  • Mon, Jun 1 2009 6:09 AM In reply to

    • cjakeman
    • Top 500 Contributor
    • Joined on Thu, Apr 9 2009
    • Posts 3
    • Points 47

    Re: Workbook_Open() fails unless much-used workbook name changed

    Thanks for taking an interest.

    The alternate location "At startup, open all files in" is blank.

    If I delete the workbook with the "bad" filename, then Excel opens normally without autoloading the workbook.

    I'm using Excel 2003 and Windows XP. I tried un-installing and re-installing Excel, but it made no difference !

    Of course, I have a workaround - just rename "extension.xls" as "extension_renamed.xls" and all is well. Incidentally, in experimenting, I managed to get another name - "extension2.xls" - onto Excel's black list.

    Very strange.

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2010. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.