This error commonly occurs when code is incompatible with the version excel

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

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

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

  • Remove From My Forums
  • Question

  • I am opening a spreadsheet with Excel 2010 and WIndows 7 64bit OS and I am getting a ( Compile error in hidden module: ModUtil. This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.)
    error message. The error dialog box has a title «Microsoft Visual Basic for Applications». I can open the same spreadsheet in Office 2010 that is on a Windows XP 32Bit OS. This is very frustrating and I need to know what to do to rectify this error message.
    I have googled this issue and I cannot get a straight answer, there are other compile errors, but not this particular ModUtil compile error. Can anyone help me out?

Answers

  • That message says there is VBA code that won’t compile and the code is located in a workbook module named ModUtil.
    This type of message can originate from 3rd party add-ins or can result from one’s own coding efforts.
    If you can’t find a ModUtil module to fix then try unloading all add-ins and see if the message stops.
    Also, if it is an add-in problem then the author of the program, in most cases, would appreciate hearing about it.
    ‘—
    Jim Cone
    Portland, Oregon USA
    http://www.mediafire.com/PrimitiveSoftware

    (Formats & Styles xl add-in:  lists/removes unused styles & number formats) — free

    • Proposed as answer by

      Friday, December 30, 2011 6:14 PM

    • Marked as answer by
      Bruce Song
      Monday, January 9, 2012 8:15 AM

Ошибка 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_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 hidden module:

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.

Источник

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

Вот как можно исправить ошибки компиляции в Word и Excel

  1. Обновление Adobe Acrobat
  2. Переместить файлы Pdfmaker в другую папку
  3. Повторная регистрация файлов OCX с помощью командной строки
  4. Обновите антивирусное программное обеспечение Norton
  5. Удалите программное обеспечение Norton

« Ошибка компиляции в скрытом модуле » – это сообщение об ошибке, которое может появиться у некоторых пользователей MS Word и Excel. Сообщение об ошибке появляется, когда пользователи Office открывают Word или Excel. Следовательно, ни одно приложение не запускается для пользователей. Появляется ли сообщение об ошибке « Ошибка компиляции в скрытом модуле » при открытии Excel или Word? Если это так, вот несколько решений, которые могут это исправить.

Как исправить ошибки компиляции в Word/Excel?

1. Обновите Adobe Acrobat

Ошибка « Ошибка компиляции в скрытом модуле » может быть связана с двумя файлами шаблонов Adobe Acrobat в папках MS Office. Таким образом, обновление Adobe Acrobat является одним из возможных решений этой проблемы. Чтобы вручную проверить наличие обновлений Adobe, нажмите Справка в окне Acrobat. Выберите Проверить наличие обновлений , чтобы открыть окно программы обновления. Затем вы можете нажать кнопку Загрузить и установить , если для нее есть обновления.

– СВЯЗАННО: как исправить то, что Word Online не работает или не отвечает

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

Pdfmaker.xla и Pdfmaker.dot – это два файла Adobe Acrobat, связанные с проблемой « Ошибка компиляции в скрытом модуле ». Таким образом, перемещение этих файлов из папок MS Office также может исправить ошибку. Вот как вы можете переместить эти файлы в альтернативную папку в Windows 10.

  • Нажмите кнопку Введите здесьпоиск , чтобы открыть окно поиска Cortana.
  • Введите «Pdfmaker.xla» в поле поиска, чтобы найти этот файл.
  • Чтобы найти файл Pdfmaker.dot, введите название этого файла в поле поиска.
  • Затем щелкните правой кнопкой мыши файлы и выберите Открыть местоположение файла , чтобы открыть их папки в проводнике.
  • Если вы не можете найти эти файлы с помощью инструмента поиска, откройте папки MS Office Startup и Xlstart в проводнике. Папка «Автозагрузка» содержит файл Pdfmaker.dot, а каталог Xlstart – файл Pdfmaker.xla.
  • Чтобы переместить файлы Pdfmaker на рабочий стол, щелкните их правой кнопкой мыши в проводнике и выберите параметр Вырезать .
  • Щелкните правой кнопкой мыши другую папку (или рабочий стол Windows), чтобы переместить их и выберите Вставить .

3. Перерегистрируйте файлы OCX с помощью командной строки.

Ошибка « Ошибка компиляции в скрытом модуле » также может быть побочным эффектом обновлений Windows. Таким образом, регистрация файла mscomctl.ocx также может решить эту проблему. Вот как вы можете перерегистрировать этот файл OCX в командной строке.

  • Нажмите клавишу Windows + X горячую клавишу.
  • Выберите Командная строка (администратор) , чтобы открыть подсказку от имени администратора.
  • Для 32-разрядной платформы Windows введите в командной строке следующие команды:

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

  • На 64-битных платформах Windows введите эти команды:

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

– СВЯЗАННО: Excel не открывает файлы, вместо этого отображается белый экран? Вы можете это исправить

4. Обновите антивирусное программное обеспечение Norton

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

5. Удалите программное обеспечение Norton

  • Если обновление Norton Antivirus не устраняет ошибку скрытого модуля, рассмотрите возможность удаления программного обеспечения Norton. Для этого нажмите сочетание клавиш Windows + R.
  • Введите «appwiz.cpl» в «Выполнить» и нажмите кнопку ОК .

  • Выберите из списка антивирус Norton и нажмите кнопку Удалить .
  • Затем нажмите Да , чтобы удалить программное обеспечение.

Одно из этих решений для ошибки « Ошибка компиляции в скрытом модуле » может запустить Word или Excel, чтобы вы могли запустить их снова. Некоторые из более общих советов в этом посте по исправлению неиспользуемых приложений MS Office также могут пригодиться для решения проблемы со скрытыми модулями.

Источник

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

Asked by:

Question

I am having issues with the Solver Add-In in Excel 2016. Please help.

After adding it to my toolbar, I get the error in the title. This is before I have even opened the spreadsheet that I want to work on. I also get the error «Cannot run the macro ‘SOLVER.XLAM!GetGroupLabel’

  • Moved by Deepak Saradkumar Panchal Microsoft contingent staff Friday, July 7, 2017 9:38 AM Solver related

All replies

I can see that the issue is related with Solver Addin and it is not a development related issue.

on this forum, we only support development related issue.

so for better response and better solution for your issue, I move this thread to Excel it pro discussions forum.

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

Источник

Compile Error in Hidden Module – VBA

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.

Viewing a Hidden Module

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.

Источник

enter image description here
I have a problem about excel VBA.
Excel file is created for many years. It run VBA code in 32 bit excel.
However, my computer upgrade 32 bit excel to 64 bit excel.
I cannot run the VBA file anymore.

It show the error:
Compile error in hidden module.
This error commonly occurs when code is incompatible with version, platform or architecture of this application.

Is that any solution. Thanks.

asked Dec 17, 2020 at 6:08

AlexMoshi's user avatar

AlexMoshiAlexMoshi

1481 gold badge2 silver badges8 bronze badges

3

I have resolved same error by following these 4 steps :

  1. Open Excel file which is having issue, press Alt + F11 go into its Visual Basic Editor.
  2. From the Tools menu select References ( Note, if references option is disabled in tools menu try closing and reopening file and enable Macro before proceeding next steps)
  3. Scroll through the available References List and uncheck any item start with MISSING:
  4. Press Alt + Q once all of these reference errors have been unticked.

If above steps does not solve issue try editing registry entries for 32/64 bit versions excel application.

This link has mentioned all troubleshooting steps
http://www.repairmsexcel.com/blog/fix-compile-error-in-hidden-module-excel

Thanks

answered Apr 21, 2021 at 12:43

JSH's user avatar

You can try to check if any missing variable declaration.
I had same issue and found out that missing declaration for one variable using for looping

answered Sep 22, 2021 at 3:19

MrZee's user avatar

1

I had this issue with the first-party Solver addin that is included with Excel.
The solution was to use Windows 8 compatibility mode.

Original source

answered Oct 28, 2021 at 4:04

Andrew's user avatar

AndrewAndrew

1711 silver badge7 bronze badges

Понравилась статья? Поделить с друзьями:
  • This drive was created by rufus ошибка что делать
  • This course cannot be played because flash is unavailable in your browser как исправить
  • This computer does not meet the minimum requirements to run this software как исправить
  • This card is not recognized error code 00000003
  • This bios is exclusively for acer only как исправить