compile error in hidden module?

Kathryn Shea 0 Reputation points
2026-09-09T16:54:24.0766667+00:00

Trying to print a certified payroll report within QuickBooks. Not working, states Microsoft error: compile error in hidden module? Talks about the VBA code in document . How to unprotect the module so that it works?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

1 answer

Sort by: Newest
  1. Ivory 1,155 Reputation points Independent Advisor
    2026-09-09T17:56:58.5333333+00:00

    Hi Kathryn,

    A “Compile Error in Hidden Module” is a security alert in Excel VBA. It usually occurs when the VBA code is incompatible with the version or architecture of the Excel application. When you attempt to run the code, this alert pops up.

    In order to investigate further, could you please provide me some additional information:

    1. What's the exact error text, including the module name? (e.g., "Compile error in hidden module: cpinterview")?
    2. In the VBA editor (Alt+F11 > Tools > References), do they see any entry marked "MISSING:"?
    3. Do they have any other Office add-ins, antivirus, or security software active that might block macros or COM add-ins?

    Once I have a clearer understanding of your current situation, I’ll be happy to assist you with greater accuracy. Please feel free to share any additional details you believe are relevant. Screenshots are especially helpful and much appreciated.

    In the meantime, you can try to unprotect the VBA Module:

    • Enable the Developer tab:
      • Go to the File menu.
      • Select Options in the Overview Panel.
      • Choose the Customize Ribbon tab.
      • Check the Developer feature under Customize the Ribbon.
      • Click OK to close the Excel Options box.

    User's image

    • Navigate to the Developer tab and select Visual Basic under the Code section.

    User's image

    • Right-click on the hidden module and choose VBAProject Properties.

    User's image

    • In the VBAProject – Project Properties window, go to the Protection tab and remove the password.
    • Press OK.

    If you have any additional questions, please feel free to reach out. 

    I'm looking forward to your reply. 

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.