Compile error in hidden module: This workbook.

Anonymous
2010-08-19T09:56:57+00:00

I've got the following error after installing office 2010. It's only shown once I want to open/close the Excel:

Microsoft Visual Basic for Applications:

Compile error in hidden module: This workbook.

This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2012-04-23T16:52:38+00:00

After searching for answers to this problem repeatedly I finally came up with this...if anyone besides me is still having this problem, hopefully this will help.

Excel shows a "compile error in hidden module: thisworkbook" when opened or closed.

This error occurs because 2 excel files are corrupted.

To stop the error from occurring:

If in Windows XP open the following folder:

C:\Documents and Settings\USERNAME\Application Data\Microsoft\Forms     where USERNAME is the current user

If in Windows 7 open the following folder:

C:\Users\USERNAME\AppData\Roaming\Microsoft\Forms     where USERNAME is the current user

Once the folder is located, delete these 2 files

ComctlLib.exd

MSComctlLib.exd

Excel should now open without the error message.

Note: Excel will create 2 new files (with the same names) in the folder, but they will not be corrupted.

Was this answer helpful?

200+ people found this answer helpful.
0 comments No comments

58 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-06-30T17:56:45+00:00

    I've got the following error after installing office 2010. It's only shown once I want to open/close the Excel:

    Microsoft Visual Basic for Applications:

    Compile error in hidden module: This workbook.

    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.

    Hold Ctrl and Excel icon to start Excel in safe mode and see what happens!

    It started without any problem when keeping pressed the Ctrl key during start up of the Excel. Plz help now what is next?

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-05-10T09:13:49+00:00

    Hello,

    I'm trying to implement the solution you offered , but I can't find the following folder. It doesn't exist:

    C:\Documents and Settings\USERNAME\Application Data\Microsoft\Forms     where USERNAME is the current user

    I'm using XP and office 2007.

    What can I do to solve this?

    Thank you in advance,

    bilya

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2012-01-10T11:51:12+00:00

    If you can, unprotect the VBProject, save it, then close Excel. Reopen Excel and the workbook in question. The debugger will take you to the exact line that is causing the problem.

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2010-08-19T20:55:46+00:00

    I've got the following error after installing office 2010. It's only shown once I want to open/close the Excel:

    Microsoft Visual Basic for Applications:

    Compile error in hidden module: This workbook.

    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.

    Hold Ctrl and Excel icon to start Excel in safe mode and see what happens!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments