Oct 28, 2018 Fix Compile error in hidden module using Word for Mac: Whenever you open or close Word 2016 you are using with your Mac Office 365 you will get error. A protected module contains a compilation error. Because the error is in a protected module it cannot be displayed. This error commonly occurs when code is incompatible with the version or architecture of this application (for example, code in a document targets 32-bit Microsoft Office applications but it is attempting to run on 64-bit Office). Apr 09, 2018 How to Fix Error 'Compile error in hidden module' on Word for Mac. Press Cmd+Shift+G and Type '/Library/Group Containers/UBF8T346G9.Office/User Content/Startup/Word' 3.
-->A protected module contains a compilation error. Because the error is in a protected module it cannot be displayed.
This error commonly occurs when code is incompatible with the version or architecture of this application (for example, code in a document targets 32-bit Microsoft Office applications but it is attempting to run on 64-bit Office).
This error has the following cause and solution:
Cause of the error:
- The error is raised when a compilation error exists in the VBA code inside a protected (hidden) module. The specific compilation error is not exposed because the module is protected.
Possible solutions:
Microsoft Compile Error In Hidden Module Mac Version
If you have access to the VBA code in the document or project, unprotect the module, and then run the code again to view the specific error.
If you do not have access to the VBA code in the document, then contact the document author to have the code in the hidden module updated.
Note
Interested in developing solutions that extend the Office experience across multiple platforms? Check out the new Office Add-ins model. Office Add-ins have a small footprint compared to VSTO Add-ins and solutions, and you can build them by using almost any web programming technology, such as HTML5, JavaScript, CSS3, and XML.
Support and feedback
Visual Basic Compile Error
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.