Access compile error in hidden module

Ошибка компиляции в скрытом модуле: Защищенный модуль содержит ошибку компиляции. Так как эта ошибка находится в защищенном модуле, ее нельзя отобразить. Эта ошибка обычно возникает в случае несовместимости кода с версией или архитектурой данного приложения (например, код в документе рассчитан на 32-разрядные приложения Microsoft Office, однако предпринимается попытка его запуска в 64-разрядной версии Office). […]

Содержание

  1. Ошибка компиляции в скрытом модуле:
  2. Поддержка и обратная связь
  3. Compile error in hidden module:
  4. Support and feedback
  5. Compile Error in Hidden Module – VBA
  6. Viewing a Hidden Module
  7. Fixing a Syntax Error
  8. Fixing a Missing Reference
  9. Check the Excel Start up Folder
  10. Using Add-ins and Macros from Other Providers
  11. VBA Coding Made Easy
  12. VBA Code Examples Add-in
  13. Ошибка Compile error in hidden module
  14. Причины проблемы
  15. Как проверить, действительно ли в вашем случае проблема именно эта:
  16. Как решить проблему с ошибкой компиляции:
  17. Fix Compile error in hidden module in Excel or Word
  18. Fix Compile error in hidden module in Excel or Word
  19. 1] Unprotect the VBA code module
  20. 2] Reregistering OCX files with the Command Prompt
  21. 3] Updating Adobe Acrobat
  22. 4] Moving PDFmaker files to another folder
  23. 5] Update or Uninstall the Norton Antivirus software
  24. How do I open Excel in safe mode?
  25. What is the safe mode in Microsoft Word?

Ошибка компиляции в скрытом модуле:

Защищенный модуль содержит ошибку компиляции. Так как эта ошибка находится в защищенном модуле, ее нельзя отобразить.

Эта ошибка обычно возникает в случае несовместимости кода с версией или архитектурой данного приложения (например, код в документе рассчитан на 32-разрядные приложения Microsoft Office, однако предпринимается попытка его запуска в 64-разрядной версии Office).

Эта ошибка имеет следующие причину и решение:

  • Ошибка возникает при наличии ошибки компиляции в коде VBA внутри защищенного (скрытого) модуля. Эта ошибка компиляции не отображается, так как модуль является защищенным.

Если у вас есть доступ к коду VBA в документе или проекте, отмените защиту модуля, а затем запустите код еще раз для просмотра сведений об ошибке.

Если доступ к коду VBA в документе отсутствует, обратитесь к автору документа, чтобы он обновил код вскрытом модуле.

Хотите создавать решения, которые расширяют возможности Office на разнообразных платформах? Ознакомьтесь с новой моделью надстроек Office. Надстройки Office занимают меньше места по сравнению с надстройками и решениями VSTO, и вы можете создавать их, используя практически любую технологию веб-программирования, например HTML5, JavaScript, CSS3 и XML.

Поддержка и обратная связь

Есть вопросы или отзывы, касающиеся Office VBA или этой статьи? Руководство по другим способам получения поддержки и отправки отзывов см. в статье Поддержка Office VBA и обратная связь.

Источник

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.

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 don’t have access to the VBA code in the document, then contact the document author to have the code in the hidden module updated.

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

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.

Источник

In this Article

This article will demonstrate how to fix the VBA Error: Compile Error in Hidden Module.

The VBA Compile Error in Hidden Module occurs when you are using a VBA macro in Excel which is stored in a hidden module. This might be due to the fact that you are using an External Add-in, or you may have created your own program in a previous version of Excel that no longer works in your current version of Excel. As the error says the module is hidden, then the code is most likely protected by a password and not normally available for the user to Edit.

The first thing to do to solve the problem would be to see if you can unhide the hidden module.

Press Alt+F11 to go to the VBE Editor.

In the Ribbon, select Developer > Visual Basic.

Note: If you don’t see the Developer Ribbon, you’ll need to enable it.

You will then be able to view your hidden module and fix the error.

Fixing a Syntax Error

(1) Double-click on the VBA Project that contains the hidden module, and then, (2) type in the Password.

In the Menu, select Debug > Compile to compile the project.

The compile error should immediately pop up. In this case we have a simple syntax error in the code.

Fix the error, and then click Debug > Compile again. Once the project is successfully compiled, the compile option will be greyed out.

Save the project to keep your changes.

Fixing a Missing Reference

Another common reason for a compile error in Excel is a missing reference. First, unhide your module in the same way as shown above, and then in the Menu, select Tools > References.

Scroll down through the list of references to find the one you want to use. In this case, the Microsoft Word 16.0 Object Library.

(1) Select the reference and then (2) click OK and then Save your File.

Check the Excel Start up Folder

You may find that you have an add-in installed that you no longer require and these may be causing issues when you try and open Excel.

Make sure Excel is closed and then, in the File Manager of your PC, go to the XLSTART folder (this is usually located in C:UsersUSERNAMEAppDataRoamingMicrosoftExcel).

Remove any Add-ins (XLA or XLAM files) that you are not using.

Using Add-ins and Macros from Other Providers

If you use macros or add-ins from an external provider, chances are you are not going to have access to the password to fix your compile error. If this is the case you would need to contact the provider of the add-in or macro in order to update it to your version of Excel. To solve the compile error problem you would need to disable the add-in.

In the Ribbon, select Developer > Add-ins, and then select either Excel Add-ins or COM Add-ins.

Remove the check mark from any selected add-in that is causing combability issues, and then click OK.

Close and Re-Open Excel.

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro — A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

VBA Code Examples Add-in

Easily access all of the code examples found on our site.

Simply navigate to the menu, click, and the code will be inserted directly into your module. .xlam add-in.

Источник

В этой инструкции описано, как устранить проблему, когда при запуске надстройки «Парсер сайтов» появляется сообщение об ошибке компиляции такого вида:

Compile error in hidden module: mod_AACTIONS.
This error commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click «Help» for information on how to correct this error.

Причины проблемы

Проблема чаще всего проявляется на Office 2013, и вызвана тем, что некоторые скриптовые элементы управления в Office 2013 считаются «устаревшими» по соображениям безопасности.
В надстройке «Парсер сайтов» проблема вызвана использованием компонента Web Browser на формах VBA.

Подробно о причинах проблемы (Kill Bit) и способах решения написано в статьях на сайте Microsoft: ссылка1, ссылка2.

Как проверить, действительно ли в вашем случае проблема именно эта:

  1. В меню Excel нажимаем ФайлПараметрыНастройка ленты, и включаем галочку для отображения вкладки «Разработчик»
  2. На ленте Excel на вкладке «Разработчик» нажимаем ВставитьЭлементы ActiveXДругие элементы управления (см. скриншот)
  3. В появившемся диалоговом окне ищем пункт «Microsoft Web Browser», и нажимаем ОК (см. скриншот)
  4. Рисуем мышкой прямоугольник на листе Excel.
    Если объект появился на листе (см. скриншот), то в вашем случае присутствует какая-то другая проблема (описанное в инструкции не поможет).
    Если же выскочило сообщение об ошибке «Вставка обьекта неосуществима» / «Cannot insert object», то в этой инструкции описан как раз ваш случай.

Как решить проблему с ошибкой компиляции:

  • запускаете (предварительно надо извлечь файл из архива) прикреплённый к статье файл VBA_WebBrowser_FixCompilationError.reg,
    на вопрос «Вы действительно хотите добавить информацию из этого файла в реестр» отвечаете «ДА»
  • перезапускаете Excel (если не поможет, то перезагружаете компьютер)

Содержимое файла VBA_WebBrowser_FixCompilationError.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice 15.0ClickToRunREGISTRYMACHINESoftwareWow6432Node MicrosoftOffice15.0CommonCOM Compatibility <8856f961-340a-11d0-a96b-00c04fd705a2>]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice 16.0ClickToRunREGISTRYMACHINESoftware Wow6432NodeMicrosoftOffice16.0 CommonCOM Compatibility<8856f961-340a-11d0-a96b-00c04fd705a2>]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREWow6432Node MicrosoftOffice15.0 CommonCOM Compatibility <8856f961-340a-11d0-a96b-00c04fd705a2>]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREWow6432Node MicrosoftOffice16.0 CommonCOM Compatibility <8856f961-340a-11d0-a96b-00c04fd705a2>]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREMicrosoft OfficeCommonCOM Compatibility <00024512-0000-0000-c000-000000000046>]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESoftwareWow6432Node MicrosoftOfficeCommonCOM Compatibility <00024512-0000-0000-c000-000000000046>]
«Compatibility Flags»=dword:00000000

Источник

Compile error in a hidden module is an error message that may be shown for some Microsoft Word and Microsoft Excel users. This message is generally displayed when Office users open Word or Excel. After this message, the application does not launch.

This error occurs when the code is incompatible with the version or architecture of this application. For instance, if code in a document targets 32-bit Microsoft Office applications but it is attempting to run on 64-bit Office, then this error can occur.

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.

Try the following suggestions to fix the issue:

  1. Unprotect the VBA code module
  2. Re-registering OCX files with the Command Prompt
  3. Updating Adobe Acrobat
  4. Moving PDfmaker files to another folder
  5. Updating or Uninstalling the Norton Antivirus software

Let us look at these ways in more detail.

1] Unprotect the VBA code module

Now, if you are facing this error, do the following:

  • 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 don’t have access to the VBA code in the document, then contact the document author to have the code in the hidden module updated.

This is the official workaround. If that does not help, try the following suggestions:

2] Reregistering OCX files with the Command Prompt

The compile error in hidden module error could also be a side effect of Windows updates. Hence, registering a mscomctl.ocx file may fix the issue. To reregister the OCX file, follow the given steps:

Press Windows + X hotkey. Choose Command Prompt (Admin) to run the prompt as an administrator.

In the case of a 32-bit Windows computer, provide the following commands in the prompt:

In the case of a 64-bit Windows computer, provide the following commands in the prompt:

3] Updating Adobe Acrobat

This applies to you if you are using Adobe Acrobat.

The compile error in hidden module error could also occur due to two Adobe Acrobat template files in MS Office folders. It is advisable to install the Adobe software from an official website to avoid this error. In case you come across this error, you can export PDFs into other Microsoft 365 like Word, Excel, or PowerPoint. You can update Adobe by clicking on Help in Adobe’s window. Choose Check for Updates to open the updater window. You can then press the Download and Install button in case of any update.

4] Moving PDFmaker files to another folder

This applies to you if you are using PDFmaker

The compile error in hidden module error is connected to two Adobe Acrobat files i.e. PDFmaker.xla and PDFmaker.dot. Hence, moving these files out of the MS Office folders may also fix the error. You can also follow the below steps:

  • Press Type here to search button and open Cortana’s search box. Type PDfmaker.xla in the search box to look for that file.
  • Type PDFmaker.dot in the search box to look for the file. Right-click the said files and choose Open file location to open the folders in the File Explorer.
  • In case you cannot find the files, you can open the MS Office Start-up and Xlstart folders in the File Explorer.
  • Right-click on the files in the File Explorer and choose the Cut option to move the PDfmaker files to the desktop. Right-click another folder to move them and choose Paste.

5] Update or Uninstall the Norton Antivirus software

This applies to you if you are using Norton software

The Norton Antivirus may also be connected to compile error in hidden module error. If it is installed, updating the software can fix the issue. You can check for updates by pressing the Update Me Now button. You can right-click the Norton Antivirus system tray icon and choose Norton LiveUpdate.

In case a Norton Antivirus update does not fix the issue, you can uninstall the Norton software.

Press Windows + R shortcut to open the Run windows. Type appwiz.cpl in Run, and click on the OK button. Choose the listed Norton Antivirus software and click on the Uninstall button to remove the software after confirmation.

We hope that one of the above-mentioned solutions helps you fix the compile error in hidden module error and re-launch Word and Excel. Do let us know in case of any queries or suggestions.

How do I open Excel in safe mode?

You can open Excel in safe mode by pressing and holding the Ctrl button as you start the program. You can also use the safe switch (excel.exe/safe) when you start the program from the command line.

Fix: The file is corrupt and cannot be opened error in Word, Excel, PowerPoint

What is the safe mode in Microsoft Word?

When you cannot use Microsoft Office normally, you can use a built-in safety feature. If Word or Excel crashes every time you open it, you can start the said application in safe mode and it helps you work normally.

Источник

В этой инструкции описано, как устранить проблему, когда при запуске надстройки «Парсер сайтов» появляется сообщение об ошибке компиляции такого вида:

Compile error in hidden module: mod_AACTIONS.
This error commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click «Help» for information on how to correct this error.

Причины проблемы

Проблема чаще всего проявляется на Office 2013, и вызвана тем, что некоторые скриптовые элементы управления в Office 2013 считаются «устаревшими» по соображениям безопасности.
В надстройке «Парсер сайтов» проблема вызвана использованием компонента Web Browser на формах VBA.

Подробно о причинах проблемы (Kill Bit) и способах решения написано в статьях на сайте Microsoft: ссылка1, ссылка2.

Как проверить, действительно ли в вашем случае проблема именно эта:

  1. В меню Excel нажимаем Файл — Параметры — Настройка ленты, и включаем галочку для отображения вкладки «Разработчик»
  2. На ленте Excel на вкладке «Разработчик» нажимаем Вставить — Элементы ActiveX — Другие элементы управления (см. скриншот)
  3. В появившемся диалоговом окне ищем пункт «Microsoft Web Browser», и нажимаем ОК (см. скриншот)
  4. Рисуем мышкой прямоугольник на листе Excel.
    Если объект появился на листе (см. скриншот), то в вашем случае присутствует какая-то другая проблема (описанное в инструкции не поможет).
    Если же выскочило сообщение об ошибке «Вставка обьекта неосуществима» / «Cannot insert object», то в этой инструкции описан как раз ваш случай.

Как решить проблему с ошибкой компиляции:

  • запускаете (предварительно надо извлечь файл из архива) прикреплённый к статье файл VBA_WebBrowser_FixCompilationError.reg,
    на вопрос «Вы действительно хотите добавить информацию из этого файла в реестр» отвечаете «ДА»
  • перезапускаете Excel (если не поможет, то перезагружаете компьютер)

Содержимое файла VBA_WebBrowser_FixCompilationError.reg:

{8856F961-340A-11D0-A96B-00C04FD705A2} — идентификатор для компонента Web Browser Control

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice 15.0ClickToRunREGISTRYMACHINESoftwareWow6432Node MicrosoftOffice15.0CommonCOM Compatibility {8856F961-340A-11D0-A96B-00C04FD705A2}]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice 16.0ClickToRunREGISTRYMACHINESoftware Wow6432NodeMicrosoftOffice16.0 CommonCOM Compatibility{8856F961-340A-11D0-A96B-00C04FD705A2}]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREWow6432Node MicrosoftOffice15.0 CommonCOM Compatibility {8856F961-340A-11D0-A96B-00C04FD705A2}]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREWow6432Node MicrosoftOffice16.0 CommonCOM Compatibility {8856F961-340A-11D0-A96B-00C04FD705A2}]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESOFTWAREMicrosoft OfficeCommonCOM Compatibility {00024512-0000-0000-C000-000000000046}]
«Compatibility Flags»=dword:00000000

[HKEY_LOCAL_MACHINESoftwareWow6432Node MicrosoftOfficeCommonCOM Compatibility {00024512-0000-0000-C000-000000000046}]
«Compatibility Flags»=dword:00000000

Permalink

Cannot retrieve contributors at this time

title keywords f1_keywords ms.prod ms.assetid ms.date ms.localizationpriority

Compile error in hidden module: <module name>

vblr6.chm1011113

vblr6.chm1011113

office

14deea0e-46ae-bcbd-b1c4-2363c90365f9

08/14/2019

high

Compile error in hidden module: <module name>

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:

  • 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 don’t have access to the VBA code in the document, then contact the document author to have the code in the hidden module updated.

[!includeAdd-ins note]

[!includeSupport and feedback]

You might receive a “Compile Error in Hidden Module” error message when you start your Excel.

Whether it is Excel or any other Microsoft Applications from time to time they are prone to errors. This Compile Error in Hidden module occurs in both MS Excel and MS Word but in this blog, you will get to know how to repair Compile Error in Hidden module in Excel.

When you start MS Excel the particular error message that displays on the screen is:

Compile error in hidden module: AutoExec

Compile error in hidden module: AutoExecNew

Compile error in hidden module: DistMon

If you are using an older version of Windows like Windows 95/98 then you might receive an error message that says:

Excel has performed an error in module excel.exe and will be closed.

For Windows 2000 and above version the error appears like:

Excel has encountered a problem and needs to close. We are sorry for the inconvenience.

After the error message is displayed, an error report will be presented which provide the additional information of that error, a link will be shown something like:

– 9.0.0.5302 – Vbe6.dll – 6.0.89.67 – 0000d799

Just click on the link to view full details of that error and depending on the application that has been crashed you might see the location to excel.exe which will guide you to the culprit of this error message.

To repair Compile Error in Hidden module go through the solutions one by one but before that get to know why does this Compile Error in Hidden module in Excel appears.

To recover Excel corrupt module, we recommend this tool:

This software will prevent Excel workbook data such as BI data, financial reports & other analytical information from corruption and data loss. With this software you can rebuild corrupt Excel files and restore every single visual representation & dataset to its original, intact state in 3 easy steps:

  1. Download Excel File Repair Tool rated Excellent by Softpedia, Softonic & CNET.
  2. Select the corrupt Excel file (XLS, XLSX) & click Repair to initiate the repair process.
  3. Preview the repaired files and click Save File to save the files at desired location.

Why Does Compile Error In Hidden Module In Excel Appear?

Microsoft is upgrading Office 2016 from 32-bit version to 64-bit version. This Compile Error in Hidden module error message usually appears when there are dome 32-bit add-ins versions of office which are incompatible with the newer version.

The most common reason behind this error is when some conditions come true:

1: MS Excel startup folder when contains both the template files on Adobe Acrobat PDF Maker add-in:

Pdfmaker.dot
Pdfmaker.xla

2: Software named Norton Anti-virus software has been installed.

Now, that you know the reason that causes Compile Error in Hidden module in Excel. Let’s begin with the solutions to fix this error.

1: Re-register OCX Files Using CMD

To fix compile error in hidden module you need to re-register some files basic to the functionality of Excel. Follow the steps:

  • Start your system with the Administrative rights
  • Press Windows + R key
  • Type “cmd” and click on OK

  • Depending on the version type the following commands and press enter:

For 32-bit version

regsvr32 -u c:windowssystem32mscomctl.ocx
regsvr32 c:windowssystem32mscomctl.ocx

For 64-bit version

regsvr32 -u c:windowssyswow64mscomctl.ocx
regsvr32 c:windowssyswow64mscomctl.ocx

Now, run MS Excel and see whether Microsoft visual basic compile error in hidden module is solved or not.

2: Try Deleting .exd Files

If the above-given solution did nor work then try deleting the .exd files from your folder, this might help you in fixing the compile error in the hidden module in excel. Follow the steps to delete files:

  • Press Windows + R key
  • Type %appdata% and click OK

  • This will open the Application Data folder, now select Microsoft

  • Open the Forms folder

  • Select comctllib.exd and mscomctllib.exd, Right-click on them and Delete

Deleting the .exd files will let you start Excel and the compile error in the hidden module issue will be resolved.

3: Move PDF Maker Files

If you are using Adobe Acrobat PDF Maker then to solve this issue you need to move the Pdfmaker.dot file and Pdfmaker.xla files to a different location. To do so follow the steps given below:

  • Click on the Windows icon and type pdfmaker. *

  • Click on all files and folders.

  • In the All or part of the file name type pdfmaker. * and search

  • Once the files are located, right-click on the pdfmaker.dot & pdfmaker.xla, and select the Cut.

  • Go to the Desktop and Paste it

After moving the PDF files by performing the above-stated steps compile error in the hidden module excel issue must be solved.

4: Update Latest Version of Adobe Acrobat

If the above method mentioned didn’t fix the Excel Compile error in the hidden module 2016 problem, then you can try updating the Adobe Acrobat version.

To update the add-in Adobe Acrobat, visit the official website of Adobe. You can find the newest updates in the search engine by searching the Adobe Acrobat Updates.

After updating the Adobe Acrobat restart your system and see if the compile error in hidden module Excel problem is solved or not.

5: Fix “Compile error in hidden module” Module 1

This error also occurs when you have recently upgraded or might have saved an Excel file that was created in different locations between versions.

To fix Excel compile error in hidden module  issue follows the simple steps mentioned below:

  • Select the file that is wrongly saved in Excel
  • Press AltF11 to go into the file Visual Basic Editor.
  • From the Tools menu, select the References
  • Scroll down to the Available References box and uncheck all that starts with MISSING:
  • Press AltQ when all the reference errors have been unchecked.

These steps will help you to fix the compile error in hidden module 1 issue.

Automatic Solution: MS Excel Repair Tool

If you are finding the above solutions difficult to perform and if you are unable to solve compile error in hidden module Excel issue, then you can try running MS Excel Repair Tool.

This is an advanced repairing tool that not only repairs damaged, corrupted, or inaccessible Excel files and all sorts of Excel errors but also recovers deleted, lost data from chart sheets, cell comments, formulas & others.

One can easily use this tool without the need for any professional and it supports all Excel versions.

* Free version of the product only previews recoverable data.

Steps to Utilize MS Excel Repair Tool:

Conclusion:

So, this was all about compile error in hidden module Excel. Well, I have tried my best to put together all the working solutions together to fix this issue.

Carefully follow the solutions given one by one. They are easy to use and had worked for many users.

Hope you liked this article and it worked for you in fixing the compile error in hidden module excel issue and making your Excel work again without any error.

Apart from this if you have any suggestions or queries then feel free to share them with us in the below comment section.

Priyanka is an entrepreneur & content marketing expert. She writes tech blogs and has expertise in MS Office, Excel, and other tech subjects. Her distinctive art of presenting tech information in the easy-to-understand language is very impressive. When not writing, she loves unplanned travels.

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

Ребята, помогите, не могу запустить  файл, раньше запускалось на других компьютерах  на работе. При запуске выдает ошибку:» compile error in hidden module: Module1….» Как приложить файлик, не понимаю, он весит почти 5 Мб

 

kuklp

Пользователь

Сообщений: 14868
Регистрация: 21.12.2012

E-mail и реквизиты в профиле.

Как вариант, выложить на файл-хранилище типа гуглдиска, мега и т.д. Сюда дать ссылку. Хотя такой способ не очень приветствуется на форуме, но если других вариантов нет, то вполне можно..

Я сам — дурнее всякого примера! …

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

 

vikttur

Пользователь

Сообщений: 47199
Регистрация: 15.09.2012

Ага… пароль на проект не подскажете? Если Вы его не знаете — обращайтесь к разработчику.

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

Работало без пароля, когда я запускал на работа

 

kuklp

Пользователь

Сообщений: 14868
Регистрация: 21.12.2012

E-mail и реквизиты в профиле.

Оно и работало бы без пароля, но проект VBA запаролен. А мы тут взломами не занимаемся, это есть в Правилах.

Я сам — дурнее всякого примера! …

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

А кто его запоролел то? не понимаю

 

Дмитрий(The_Prist) Щербаков

Пользователь

Сообщений: 13993
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

#8

14.07.2018 13:19:50

Цитата
aemotl написал:
А кто его запоролел то?

А это кому вопрос? Файл-то Ваш…

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

vikttur

Пользователь

Сообщений: 47199
Регистрация: 15.09.2012

Пароль стоит на проекте VBA, где записаны макросы. пароль, по всей вдимости, поставил тот, кто писал код.

По ошибке: возможо, в коде используются библиотеки, которых нет на машине, где возникает ошибка. Или разрядность системы влияет.

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

Т.е проблема только в пароле? Просто макрос ПУЭ6, же запускается

 

vikttur

Пользователь

Сообщений: 47199
Регистрация: 15.09.2012

Вы не поняли. Причина ошибки непонятна. Чтобы понять, нужно видеть макросы. Но доступ к ним закрыт. А взломом здесь не занимаются.

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

Часть макросов работает

Прикрепленные файлы

  • Скрин.jpg (65.33 КБ)
  • Скрин2.jpg (231.82 КБ)

 

kuklp

Пользователь

Сообщений: 14868
Регистрация: 21.12.2012

E-mail и реквизиты в профиле.

И что? Вот там на скрине кнопка «Изменить» неактивна. Это как раз из-за пароля.

Я сам — дурнее всякого примера! …

 

Дмитрий(The_Prist) Щербаков

Пользователь

Сообщений: 13993
Регистрация: 15.09.2012

Профессиональная разработка приложений для MS Office

#14

14.07.2018 14:27:53

Цитата
aemotl написал:
Часть макросов работает

смотрите. У Вас есть холодильник. И он даже морозит. И кнопки на двери работают, делают охлажденные напитки и лед. Вы чуете, что из него начинает вонять — видимо, что-то протухло внутри. Но вот открыть холодильник нельзя — замок висит. Т.е. вроде и работает что-то, но где-то явно сбой — просто так вонять не будет. Но и узнать что именно, не достав ключ от замка нельзя.
Вот и здесь так же — что-то работает, а что-то нет. Но что именно узнать нельзя, не посмотрев код. Если Вы нажмете в книге Alt+F11, затем Ctrl+R и в правой части окна найдете проект VBA этой книги — VBAProject(MehRasch.xlsm) и попробуете раскрыть плюсик слева от него, чтобы посмотреть коды макросов — то от Вас запросят пароль. А для запароленных проектов нельзя однозначно идентифицировать ошибку и поэтому VBA пишет просто имя модуля, в котором ошибка и все.

Даже самый простой вопрос можно превратить в огромную проблему. Достаточно не уметь формулировать вопросы…

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

А не может быть такого, что файл создан в версии excel очень старой и поэтому все проблемы?  

Изменено: aemotl14.07.2018 15:20:48

 

Ігор Гончаренко

Пользователь

Сообщений: 13251
Регистрация: 01.01.1970

#16

14.07.2018 15:26:48

Цитата
aemotl написал:
что файл создан в версии excel очень старой

Допустим у Вас холодильник «Саратов» обмотан цепью и закрыт на замок — нужен ключ чтобы посмотреть что там внутри не так

Программисты — это люди, решающие проблемы, о существовании которых Вы не подозревали, методами, которых Вы не понимаете!

 

sokol92

Пользователь

Сообщений: 4429
Регистрация: 10.09.2017

Беглый внешний осмотр пациента указывает не на холодильник «Саратов», а на

Autocad

Вероятно, на тех компьютерах, где файл запускается, Autocad установлен, а на проблемном компьютере — нет.

Изменено: sokol9214.07.2018 17:12:01

 

VideoAlex

Пользователь

Сообщений: 655
Регистрация: 01.01.1970

Мне бы столько терпения  :D  

 

Doober

Пользователь

Сообщений: 2139
Регистрация: 09.04.2013

#19

14.07.2018 19:17:01

Цитата
aemotl написал:
что файл создан в версии excel очень старой и поэтому все проблемы?  

Сохраните файл в формате  2003 как MehRasch ПУЭ-7.xls и проверьте. Возможно проблемы исчезнут.

<#0>

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

#20

14.07.2018 20:38:49

Цитата
sokol92 написал:
Беглый внешний осмотр пациента указывает не на холодильник «Саратов», а на  Autocad  Вероятно, на тех компьютерах, где файл запускается, Autocad установлен, а на проблемном компьютере — нет.

Автокад установлен и запущен, правда автокад 2014

 

sokol92

Пользователь

Сообщений: 4429
Регистрация: 10.09.2017

Если в программе есть ссылка на определенную версию Autocad, то с другой версией программа может не работать — так устроено

раннее связывание.

В этом гипотетическом случае как раз и будет ошибка компиляции.

 

Doober

Пользователь

Сообщений: 2139
Регистрация: 09.04.2013

#22

15.07.2018 00:22:09

OFF

Код
Workbooks("MehRasch ПУЭ-7.xls").Activate

<#0>

 

aemotl

Пользователь

Сообщений: 9
Регистрация: 14.07.2018

#23

15.07.2018 11:30:22

Doober

, Спасибо, большое. Все работает.  

Ошибка компиляции в скрытом модуле: <module name>

Защищенный модуль содержит ошибку компиляции. Так как эта ошибка находится в защищенном модуле, ее нельзя отобразить.

Эта ошибка обычно возникает в случае несовместимости кода с версией или архитектурой данного приложения (например, код в документе рассчитан на 32-разрядные приложения Microsoft Office, однако предпринимается попытка его запуска в 64-разрядной версии Office).

Эта ошибка имеет следующие причину и решение:

  • Ошибка возникает при наличии ошибки компиляции в коде VBA внутри защищенного (скрытого) модуля. Эта ошибка компиляции не отображается, так как модуль является защищенным.

Если у вас есть доступ к коду VBA в документе или проекте, отмените защиту модуля, а затем запустите код еще раз для просмотра сведений об ошибке.

Если доступ к коду VBA в документе отсутствует, обратитесь к автору документа, чтобы он обновил код вскрытом модуле.

Хотите создавать решения, которые расширяют возможности Office на разнообразных платформах? Ознакомьтесь с новой моделью надстроек Office. Надстройки Office занимают меньше места по сравнению с надстройками и решениями VSTO, и вы можете создавать их, используя практически любую технологию веб-программирования, например HTML5, JavaScript, CSS3 и XML.

Поддержка и обратная связь

Есть вопросы или отзывы, касающиеся Office VBA или этой статьи? Руководство по другим способам получения поддержки и отправки отзывов см. в статье Поддержка Office VBA и обратная связь.

Ошибка решается, проверкой не включенных модулей в окне VB,проверьте все ли необходимые модули включены,и есть ли эти модули на самом деле на ПК,возможно модуль отмечен,но сам отсутствует у меня проблему решило,включением специфических модулей для конкретного файла с расчетами.

Решение проблемы: Откройте файл в Excel – при помощи комбинации клавиш войдите в окно Visual Basic(ALT+F11), далее выберите меню “Tools-References” и посмотрите все ли отмеченные модули есть на самом деле на компьютере и все ли модули необходимые для работы Вашего макроса включены.

Error in Excel “Compile Error in Hidden Module”
Can be happen when Excel miss some reference to library.
For fix: Open Excel – Go to VB window -(ALT+F11).Open Tools-References and check unchecked modules(only needed for your Document).

Решения для ошибки компиляции в скрытом модуле в Excel или Word [Новости MiniTool]

ошибка компиляции в скрытом модуле

При использовании Excel или Word вы можете получить сообщение об ошибке «Ошибка компиляции в скрытом модуле». Что делать, чтобы избавиться от ошибки компиляции Word или Excel на ПК с Windows? Успокойтесь, и теперь вы можете получить несколько простых методов из этого сообщения, предлагаемого MiniTool .

Ошибка компиляции Excel или Word в скрытом модуле

При запуске Excel или Word на экране вашего компьютера может появиться сообщение «Ошибка компиляции в скрытом модуле». Модуль может быть thisworkbook, hstbarpublic, menuandtoolbar, aowd и т. Д.

Почему возникает ошибка компиляции? Это связано с тем, что Microsoft обновляет Office 2016 с 32-разрядной версии до 64-разрядной версии, но в Office есть несовместимые 32-разрядные надстройки. То есть некоторые надстройки содержат код, несовместимый с текущей версией Office 2016.

Что делать, чтобы избавиться от ошибки? Решения для вас ниже.

исправить не отвечающий Excel эскизУстранение неполадок Excel и спасение ваших данных (несколькими способами)

Вы хотите избавиться от Microsoft Excel, который не отвечает? В этом посте мы покажем вам несколько методов, которые могут эффективно решить эту проблему.

Исправления ошибок компиляции в скрытом модуле Excel или Word

Обновите Adobe Acrobat

Два файла шаблона Adobe Acrobat в папке Office могут вызвать сообщение об ошибке компиляции. Одно из возможных решений — обновить Adobe Acrobat.

Шаг 1. Щелкните это приложение, перейдите в Справка> Проверить обновления .

Шаг 2. Если есть обновления, нажмите Загрузить и установить .

Используйте CMD для регистрации файлов OCX

Чтобы исправить ошибку компиляции Excel, вам необходимо зарегистрировать некоторые файлы, необходимые для работы Excel. Просто следуйте этим инструкциям:

Шаг 1. Запустите командную строку (CMD) с правами администратора.

Шаг 2: Введите следующие команды и нажмите Войти после каждого:

В 32-битной Windows:

regsvr32 -u c: windows system32 mscomctl.ocx

regsvr32 c: windows system32 mscomctl.ocx

В 64-битной Windows:

regsvr32 -u c: windows syswow64 mscomctl.ocx

regsvr32 c: windows syswow64 mscomctl.ocx

Зарегистрируйте файлы OCX

Шаг 3: Запустите Excel и посмотрите, исправили ли вы ошибку компиляции в скрытом модуле.

Переместить файлы Pdfmaker в другую папку

Pdfmaker.xla и pdfmaker.dot — это два файла Adobe Acrobat, вызывающие ошибку компиляции. Итак, вы можете переместить эти файлы из папок MS Office, чтобы исправить проблему.

Шаг 1: введите pdfmaker.xla в поле поиска и щелкните его правой кнопкой мыши, чтобы выбрать Откройте расположение файла .

Шаг 2: В проводнике скопируйте и вставьте этот файл в другую папку, например на рабочий стол.

Шаг 3. Сделайте то же самое с файлом pdfmaker.dot.

Теперь вам нужно избавиться от ошибки компиляции в скрытом модуле.

Удалить файлы .exd

Если описанные выше решения не помогли, попробуйте удалить файлы .exd со своего компьютера. Это может быть полезно для исправления ошибки компиляции Excel или Word в скрытом модуле.

Шаг 1: нажмите Win + R , ввод %данные приложения% и нажмите Хорошо .

Шаг 2: нажмите Microsoft> Формы .

Шаг 3. Щелкните правой кнопкой мыши comctllib.exd и mscomctllib.exd и щелкните удалять чтобы удалить их по одному.

Обновите антивирус Norton

Norton Antivirus может быть связан с ошибкой компиляции в скрытом модуле. Если на вашем настольном компьютере или ноутбуке установлено это программное обеспечение, его обновление может помочь решить проблему.

Шаг 1. Перейти к эта ссылка и нажмите Обновите меня сейчас .

Шаг 2: Щелкните файл .exe, чтобы запустить его и завершить обновление.

Если обновление не может решить вашу проблему, вы можете удалить это антивирусное программное обеспечение со своего компьютера и посмотреть, удаляется ли ошибка. Просто обратитесь к этому сообщению — Четыре идеальных способа: как удалить программы в Windows 10 .

Конец

Вас беспокоит ошибка компиляции в скрытом модуле при использовании Word или Excel? Не принимайте это близко к сердцу. Попробовав эти методы, вы легко и эффективно избавитесь от этой проблемы.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Access at violation at address error
  • Acceptsecuritycontext error data 775 v2580
  • Acceptsecuritycontext error data 52e v4563
  • Acceptsecuritycontext error data 52e v2580
  • Accept tos ошибка взаимодействия

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии