4 Efficient Ways Are Ready! Fix Compile Error in Hidden Module

This article is about an error message that users might receive when they open MS Excel - Compile error in hidden module. We will tell you why you would see this error message and what methods you can apply to fix this problem. Moreover, a bonus solution for recovering and repairing lost Excel files is also included.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.4

Table of Contents

When talking about MS Office error messages, it's always a long story. Users would report hundreds of different error messages they received when they open Word, Excel, or PowerPoint. For some common errors like Runtime Error 1004 or add-in template is not valid, we have already introduced how can you fix them. This time, we will talk about another error message - Compile error in hidden module.

Users often received this error message when they start Excel. In rare times, when users start MS Word, this error would also pop up. Usually, users would see one of the following error messages:

  • Compile error in hidden module: AutoExec
  • Compile error in hidden module: AutoExecNew
  • Compile error in hidden module: DistMon

Compile error in hidden module

The different suffixes indicate that you have different culprits to blame, and that's why there is more than one solution for you to solve the problem. Before checking the solutions, you should know the reasons why you see these error messages.

Why Do I See the Error Message of Compile Error in Hidden Module?

Now the Office 2016 is upgraded from a 32-bit version to a 64-bit version. The Compile error in hidden module error message usually appears when there are dome 32-bit add-ins versions of the office in your computer, and they are incompatible with the 64-bit version.

Two common conditions that would cause this error are as follow:

1.When MS Excel startup folder contains both the following two template files on Adobe Acrobat PDF Maker add-in:

  • Pdfmaker.dot
  • Pdfmaker.xla

2.Your computer has installed the Norton Anti-virus software.

After knowing what causes this error message, now it's time to apply the solutions. Here we have listed four solutions, you can try them one by one until you solve the problem.

Method 1. Re-register OCX Files with CMD

The first solution you can try is to re-register some basic Excel function files. In this method, we need to apply Windows Command Prompt.

Step 1. Press Windows + R keys at the same time. Type cmd in the run box.

Open cmd in Run box

Step 2. Type the following command and press Enter.

For 32-bit:

regsvr32 -u c:\windows\system32\mscomctl.ocx

regsvr32 c:\windows\system32\mscomctl.ocx

For 64-bit:

regsvr32 -u c:\windows\system64\mscomctl.ocx

regsvr32 c:\windows\system64\mscomctl.ocx

Step 3. Now run MS Excel again to check if the error message still exists.

Method 2. Delete .exd Files

The exd file is a control information cache file of Microsoft Office. These files are created when a user inserts an ActiveX control into a document using the Control Toolbox in an MS Office program. You can delete this cache file to see if it can fix the Compile error in hidden module error.

Step 1. Press Windows + R keys at the same time. Type %appdata% in the run box.

Step 2. It will open your AppData folder. Go to Roaming > Microsoft > Forms.

Step 3. Find the .exd files, select comctllib.exd and mscomctllib.exd, and delete these two files.

Step 4. Restart your Excel and check if the problem is solved.

Method 3. Move PDF Maker Files

As we have mentioned above, one of the reasons you will see this error message is because there are two template files on Adobe Acrobat PDF Maker add-in. So in this method, you can move the PDF Maker files to another place to fix your problem. Here are the detailed steps.

Step 1. Open Windows File Explorer, search pdfmaker.* on your computer.

Step 2. Choose the pdfmaker.dot and pdfmaker.xla files, right-click on both files, and select cut.

Step 3. Paste these two files to your Desktop.

Now you can restart the MS Excel to see if the problem is solved.

Method 4. Update to the Latest Adobe Acrobat

If the above methods can't help you solve the Compile error in hidden module problem, the last resort is to update the Adobe Acrobat to the latest version. It's because this problem is associated with the Adobe Acrobat that is installed on your computer.

Go to the Adobe official website, find the latest version of Acrobat, download and install it on your computer.

related articles

How to Fix Word Runtime Error 91?

A runtime error is a common program error that usually occurs in Microsoft Office software. This article will you what is the reason for this error, and how to fix it.

runtime error 91

Bonus Solution: Recover and Repair MS Excel on Your Computer

With the above methods, you might have solved the Excel Compile error in hidden module issue. Then we'd like to share a good bonus tool - EaseUS Data Recovery Wizard with you. EaseUS Data Recovery Wizard is specialized in computer data recovery. It works well on both Windows and Mac computers.

The feature we want to introduce here is its file recovery and repair function. If your documents got lost and damaged, EaseUS Data Recovery will first scan the lost files and then automatically repair them while recovering files to your computer. Moreover, this tool also covers many other data loss scenarios. For example, the hard drive becomes RAW, the hard drive is formatted, and OS crashes, etc.

If you want to have a try on EaseUS Data Recovery Wizard, you can download it and follow the guide to see how to use this tool. In the following guide, we have introduced how to recover and repair Excel documents.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.4

Step 1. Select a location to start finding corrupted Excel files

Launch EaseUS Data Recovery Wizard, and then scan the corrupted or damaged Excel files.

repair Excel file - 1

Step 2.  Scan for the corrupted Excel document

Find the damaged files through the filter, file path, search, etc.

repair damaged Excel files

Step 3.  Repair and save the Excel file to a secure location

Double-click the corrupt excel file, and this program will automatically repair corrupted and damaged Excel files. Click "Recover" to save the repaired Excel files to a safe location.

Save repaired Excel files

The Bottom Line

That's all about Compile error in hidden module error message. Hope you can fix your problem after reading this article. Once again, we'd like to introduce EaseUS Data Recovery Wizard. No matter you need to recover lost photos, videos, or permanently deleted Recycle bin files, apply this tool is a wise choice.

Was This Page Helpful?

Updated by Gemma

Gemma is member of EaseUS team and has been committed to creating valuable content in fields about file recovery, partition management, and data backup etc for many years. She loves to help users solve various types of computer related issues.

Read full bio

Product Reviews

TrustScore 4.7 | 323 reviews
  • EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition.

    Read More
  • EaseUS Data Recovery Wizard is the best we have seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past.

    Read More
  • EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair.

    Read More