5 Easy Ways to Fix Compile Error in Hidden Module on Mac

Although macOS has its own word processor and spreadsheet apps in Pages and Numbers, some people still greatly prefer to use Microsoft’s own software suite: Office 365.

Office 365 includes pretty famous apps like Word, Excel, PowerPoint, Outlook, OneNote, and more. This suite has essentially become the standard for businesses, schools, and private usage the world over.

Everyone, at some point, has used Microsoft Word to type up an essay or created a work presentation with PowerPoint. As such, Microsoft made special versions of their 365 apps so that they can work on macOS.

However, problems do arise with this software and you might get an error mentioning something about a “Compile Error in Hidden Module” on your Mac computer.

What does Compile Error in Hidden Module mean?

According to Microsoft’s own support page, this compile error occurs when there is an incompatibility problem between the app and the operating system that it’s on.

For whatever reason, Microsoft Word might not be compatible with your Mac computer. This isn’t a problem that solely happens with Office 365 apps on macOS, but it does happen every now and again.

Regardless of how often it happens, these compile errors are annoying and this guide will help you solve these problems.

How do I remove compile error in the hidden module on Mac?

1. Delete the linkCreation.dotm file

  1. First, open Finder which is the face icon on the bottom bar.
  2. Click Go on the top bar.
  3. Select Go to Folder.
  4. Type in /Library/ into the search bar and hit Enter on your keyboard.
  5. Open the Group Container folder by double-clicking it.
  6. Within that folder should be another folder titled UBF8T346G9.Office. Open it.
  7. Open the User Content folder.
  8. Next double-click Word.
  9. Within the Word folder will be a file titled linkCreation.dotm.
  10. Move the dotm file elsewhere like to your desktop.
  11. Open Microsoft Word and the problem should be gone.

Deleting this file may be a little complex so this guide whittled down the number of files you’ll see to make things easy to understand. Normally, it’s way more than shown.

Some outdated files can cause incompatibilities. Since you can’t find these files at all, we recommend using CCleaner, a tool that removes all old and junk files. In most cases, this will resolve the issue and improve system performance.

2. Turn off add-ins

  1. Click Tools in the top bar.
  2. In this new menu, click Templates and Add-ins.
  3. If there’s something within the Global Templates and Add-ins section, you’ll need to remove it.
  4. Highlight an add-in and press the Minus button.
  5. Click the OK button and then restart Microsoft Word.

3. Delete add-ins causing the problem

  1. If disabling doesn’t work, you’ll have to delete the add-ins.
  2. Similar to the first solution, open the Group Container folder under Library.
  3. Follow a similar trajectory of the first solution. Double-click UBF8T346G9.Office and then open User Content.
  4. Now double-click Startup.
  5. Here you have two folders. Open the folder with the problematic add-in. In this example, we’ll open the Word folder.
  6. Locate the problematic add-in, right-click it, and select Move to Trash.
  7. Right-click the trash can icon and select Empty Trash.

4. Disable or uninstall the antivirus app

  1. Antivirus software has been shown to get in the way of apps on Mac and cause this error, so start by clicking the Launchpad icon in the bottom bar.
  2. Click and drag the antivirus app (in this example, Antivirus One) to the trash can icon in the bottom right corner.
  3. Right-click the trash can icon and select Empty Trash.

5. Unprotect Excel worksheet

  1. Open Excel.
  2. Click Review at the top part of the app.
  3. At the top of the window, select Unprotect Sheet.
  4. Enter the password when it asks for it. Click the OK button.
  5. Click the Excel entry at the top bar.
  6. Select Quit Excel.
  7. Open Excel again and the problem should be resolved.

This section is only for the Excel app. Other apps in the Office 365 suite don’t have this capability.

How do I unhide a module in VBA?

In Excel, press the Option and F11 keys on your Mac keyboard to open up Microsoft Visual Basic for the sheet. Click the View entry found on the top bar and select both the Project Explorer and Properties Window entries.

This will unhide both of those modules if they were ever hidden. You can also hover over the edges of those modules and extend them manually to increase their size.

For those unaware, VBA stands for Visual Basic for Applications, and when used in the Office suite, allows people to create macros to make their work on those apps much easier. It allows people to do almost whatever they want.

Feel free to comment below if you have any questions regarding these steps. Also, do not hesitate to comment about guides you’d like to see or information about other Mac processes.

Leave a Comment