Compile error in hidden module excel 2016 как исправить
Перейти к содержимому

Compile error in hidden module excel 2016 как исправить

  • автор:

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

введите здесь описание изображения У меня проблема с Excel VBA. Файл Excel создается много лет. Он запускает код VBA в 32-битном Excel. Однако мой компьютер обновил 32-разрядную версию Excel до 64-разрядной версии Excel. Я больше не могу запускать файл VBA.

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

Это какое-то решение. Спасибо.

3 ответа

Я решил ту же ошибку, выполнив следующие 4 шага:

  1. Откройте файл Excel, в котором возникла проблема, нажмите Alt + F11, войдите в его редактор Visual Basic.
  2. В меню «Инструменты» выберите «Ссылки» (обратите внимание: если параметр «Ссылки» отключен в меню «Инструменты», попробуйте закрыть и снова открыть файл и включить макрос, прежде чем переходить к следующим шагам).
  3. Прокрутите доступный список ссылок и снимите флажки с любого элемента, начинающегося с ОТСУТСТВУЕТ :
  4. Нажмите Alt + Q, как только все эти опорные ошибки будут устранены.

Если описанные выше шаги не помогли решить проблему, попробуйте отредактировать записи реестра для 32- и 64-разрядной версии приложения Excel.

Вы можете попробовать проверить, не пропало ли какое-либо объявление переменной. У меня была такая же проблема, и я обнаружил, что отсутствует объявление для одной переменной, использующей для цикла

У меня была эта проблема с надстройкой Solver, входящей в состав Excel. Решением было использовать режим совместимости с Windows 8.

Ошибка в Excel “Compile Error in Hidden Module”

Ошибка решается, проверкой не включенных модулей в окне 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).

Ошибка Compile error in hidden module

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

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_MACHINE\SOFTWARE\Microsoft\Office\ 15.0\ClickToRun\REGISTRY\MACHINE\Software\Wow6432Node\ Microsoft\Office\15.0\Common\COM Compatibility\ <8856F961-340A-11D0-A96B-00C04FD705A2>]
"Compatibility Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ 16.0\ClickToRun\REGISTRY\MACHINE\Software\ Wow6432Node\Microsoft\Office\16.0\ Common\COM Compatibility\<8856F961-340A-11D0-A96B-00C04FD705A2>]
"Compatibility Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ Microsoft\Office\15.0\ Common\COM Compatibility\ <8856F961-340A-11D0-A96B-00C04FD705A2>]
"Compatibility Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ Microsoft\Office\16.0\ Common\COM Compatibility\ <8856F961-340A-11D0-A96B-00C04FD705A2>]
"Compatibility Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Office\Common\COM Compatibility\ <00024512-0000-0000-C000-000000000046>]
"Compatibility Flags"=dword:00000000

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\ Microsoft\Office\Common\COM Compatibility\ <00024512-0000-0000-C000-000000000046>]
"Compatibility Flags"=dword:00000000

How to solve Compile Error in Hidden Module in Excel? Office.com/setup

If you start your Excel application, sometimes users receive a Compile error in Hidden Module in Excel. Hence, in this blog you will read the solution to fix Compile error in Hidden Module in Excel. For help, you should visit to the site of Microsoft via www.office.com/setup.

Method To Resolve Compile Error in Hidden Module in Excel:

1: Re-register OCX Files Using CMD:

For this, first you have to start your system with the Administrative rights. Then, you have to press Windows + R key together. After this, you need to type “cmd” and then click on OK button. Now, according to the version you have to type the following commands and then press enter: Www.Office.Com/Myaccount

For 32-bit version

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

For 64-bit version

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

At last, you should run MS Excel and check if Microsoft visual basic compile error in hidden module is solved or not.

2. Try Deleting .exd Files:

You should press Windows + R key simultaneously. After this, you should type %appdata% and then click on OK button. Here, it will open the Application Data folder and then select Microsoft. At this point, it will open the Forms folder. Then, you have to select comctllib.exd and mscomctllib.exd, and then right-click on it and then Delete. When you delete the .exd files, this will start Excel application and the compile error in the hidden module will be solved.

3. Move PDF Maker Files:

To solve this issue, you should move the Pdfmaker.dot file and Pdfmaker.xla files to a different location. For this, you should click on the Windows icon and then type pdfmaker. After this, you should click on all files and folders. Now, in the All or part of the file name, you should type pdfmaker. * and then tap on search.When the files are located, you should right-click on the pdfmaker.dot & pdfmaker.xla, and then select the Cut. At last, you should go to the Desktop and then Paste it. For more help, hit on office.com/setup.

4. Update Latest Version of Adobe Acrobat:

To fix this issue, you should update the Adobe Acrobat version. And for updating the add-in Adobe Acrobat, you should visit to the official website of Adobe. Here, you will find the newest updates in the search engine just by searching the Adobe Acrobat Updates. When you update the Adobe Acrobat, you should restart your system and then check if the compile error in hidden module Excel issue is solved or not.

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

For this, you should select the file which is wrongly saved in Excel. After this, you should press Alt+ F11 to visit to the file Visual Basic Editor. Then from the Tools menu, you should select the References. Just scroll down to the Available References box and then uncheck all that starts with MISSING: . At last, you should press Alt+ Q if all the reference errors have been unchecked.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *