Excel модуль не найден

This is a well-described issue, and it exactly matches what I have just experienced (even including the fact that I haven’t been versioning recently).

My file has an xlsb suffix. Resaving with a different suffix did not work for me on the same PC, but I emailed the file to another PC, opened it, saved as xlsm, sent it back to the original machine and it now works fine again. I can even re-save with my preferred xlsb suffix and it still works.

I’ve also run this script to make a backup of my modules:

Sub ExportVbaModules()
     
'Acknowledgements to Andy Pope [ozgrid thread 60787]
     
    Dim objMyProj As VBProject 'if error, go to VBA editor - tools - References - Microsoft Visual Basic-Extensibility5.3
    Dim objVBComp As VBComponent
     
    Set objMyProj = Application.ActiveWorkbook.VBProject
     
    For Each objVBComp In objMyProj.VBComponents
        If objVBComp.Type = vbext_ct_StdModule And objVBComp.Name <> "" Then
            objVBComp.Export "C:UsersMyNameVbaBackups" & objVBComp.Name & ".txt"
        End If
    Next

End Sub

The And objVBComp.Name <> "" stops it from erroring when it encounters a corrupted module but turned out not to be necessary as the ‘fixed’ file contained no corrupted modules.

Since that export routine is so fast (40 modules / 100kb saved in <1s) I will be assigning it to a button on the ribbon with a better naming convention for the files it creates.

My problem is occuring when I try to open a .xls document by MS Excel from C#, and this document contains macros. I’m using Microsoft.Office.Interop.Excel library (v12). By this operation I’m getting an error in Microsoft Excel — a message box from Visual Basic says «Module not Found» and Visual Studio debugger stops also with an exception, «HRESULT 0x800A03EC».

How to solve this problem? I don’t want to use macros saved with that file, but at least read cells values…

Deduplicator's user avatar

Deduplicator

44.3k7 gold badges65 silver badges115 bronze badges

asked Mar 28, 2011 at 13:02

komorra's user avatar

Excel is panicky about macros, it is a setting inside Excel that determines what it does when it sees one in an .xls file. In 2007 use Excel Options, Trust Center, Trust Center settings, Macro Settings. Select the «Disable all macros without notification» radio button.

IIRC, there is also an option in the Open method to suppress messages.

answered Mar 28, 2011 at 13:13

Hans Passant's user avatar

Hans PassantHans Passant

916k145 gold badges1676 silver badges2517 bronze badges

Try OLE DB for Excel. It will be better than using interop.

Peter Mortensen's user avatar

answered Mar 28, 2011 at 13:12

Brijesh Mishra's user avatar

Brijesh MishraBrijesh Mishra

2,7281 gold badge21 silver badges35 bronze badges

1

  • Remove From My Forums
  • Вопрос

  • Добрый день. 

    При открытии надстройки Excel система выдает ошибку вида:

    Class Not Registered. Looking For Object With CLSID {7EBDAAE1-8120-11CF-899F-00AA00688B10}

    Что делал:

    1. Запускал Excel с ключом /regserver.

    2. Регистрировал msstkprp.dll.

    Версия Excel — 2010.

    Прошу помощи.

Ответы

  • Это коммерческая надстройка, пробовали ли Вы связаться
    с Автором этой надстройки?

    Тем более об этой ошибке Автор говорит:


    Да, я Жук, три пары лапок и фасеточные глаза :))

    • Изменено

      23 января 2014 г. 9:25

    • Помечено в качестве ответа
      Dmitry Losyankov
      23 января 2014 г. 11:19

Содержание

  1. Ошибка при запуске формы
  2. 12 ответов
  3. System error h8007007e 2147024770 не найден указанный модуль excel
  4. Вопрос
  5. Ответы
  6. Все ответы
  7. System error h8007007e 2147024770 не найден указанный модуль excel
  8. Answered by:
  9. Question
  10. Answers
  11. All replies
  12. System error h8007007e 2147024770 не найден указанный модуль excel
  13. Answered by:
  14. Question
  15. Answers
  16. All replies

Ошибка при запуске формы

Hа некотоpых машинах в офисе не запускается фоpма:( Машины все одинаковые и залиты с одного дистpибутива(Win2000+SP4, MS Excel 2000+SP3).

Затык пpоисходит на фоpме где используются SpinButton.

System Error &H8007007E (-2147024770). Hе найден указанный модуль.

после нажатия на ОК, выдаёт следующее сообщение:

Run-time error ‘7’
Could not find the specified object

Hажатие на кнопку Debug ни к чему не пpиводит.

В каком напpавлени копать?

12 ответов

Originally posted by Vlaed
Hа некотоpых машинах в офисе не запускается фоpма:( Машины все одинаковые и залиты с одного дистpибутива(Win2000+SP4, MS Excel 2000+SP3).

Затык пpоисходит на фоpме где используются SpinButton.

System Error &H8007007E (-2147024770). Hе найден указанный модуль.

после нажатия на ОК, выдаёт следующее сообщение:

Run-time error ‘7’
Could not find the specified object

Hажатие на кнопку Debug ни к чему не пpиводит.

В каком напpавлени копать?

Видимо, по-разному стоит всё же офис — не на всех машинах есть библиотека, опсывающая SpinButton. Посмотри, какую лайброру она использует и зарегестрируй её на сбойных машиинах. Проблема автоматической регистрации тут часто уже обсуждалась. Погляди предыдущие посты, задав в поиске regsrv32.

Откройте редактор VBA (Alt+F11), вставте пустую форму. Появится форма и панель элементов.
Если пан. эл. не появится, нажмите кнопку toolbox.
Среди элементов упр. должен быть SpinButton.
Ну а ежели его нет то — жмем в меню Tools — Additional Control.
В диалоговом окне «Дополнительные элементы управления» отметить Microsoft Forms 2.0 SpinButton.
Успехов dedtolya.

Откройте редактор VBA (Alt+F11), вставте пустую форму. Появится форма и панель элементов.
Если пан. эл. не появится, нажмите кнопку toolbox.
Среди элементов упр. должен быть SpinButton.
Ну а ежели его нет то — жмем в меню Tools — Additional Control.
В диалоговом окне «Дополнительные элементы управления» отметить Microsoft Forms 2.0 SpinButton.
Успехов dedtolya.

На проблемных машин с пустой формой всё хорошо — все элементы прекрасно видны и вставляются.
Сответственно библиотека везде есть(FM20.DLL)

На проблемных машин с пустой формой всё хорошо — все элементы прекрасно видны и вставляются.
Сответственно библиотека везде есть(FM20.DLL)

Должен признатся, что допустил «неточность». На панели будут все отмеченные дополнительные элементы если еще установлен флажок «Паказать. Только выделенные элементы.»
А вот ошибку смоделировать у себя не смог.
Успехов dedtolya

На проблемных машин с пустой формой всё хорошо — все элементы прекрасно видны и вставляются.
Сответственно библиотека везде есть(FM20.DLL)

На многих машинах сбоит?
Я, честно говоря, на данный момент только одну причину здесь вижу — сбой в регистрации библиотеки.
Но ща ещё посовещаюсь, может что и придумаю.

Из проверенных 6-ти — на 2-х сбоит, на 4-х работает. Пытался брать DLL с «рабочей» машины и регистрировать заново — тоже самое.

Я, к сожалению, со SpinButton никогда не работал. Она за собой никакие другие библиотеки не тянет? Не знаешь?
Кстати, эта приблуда идёт в стандартном комплекте? Или она от сторонних разработчиков?
Не возможны конфликты из-за прав доступа? (Может, эта SpinButton где-то что-то править пытается или ещё что-то такое. )
Я ещё подумаю — может разобраться получится. Даже уверен, что получтися.

Приблуда из стандартной поставки. Права доступа у меня везде админские:) Мучаюсь с этим 3-й день, пока результата нет:(

Приблуда из стандартной поставки. Права доступа у меня везде админские:) Мучаюсь с этим 3-й день, пока результата нет:(

Знач так, пойдём своим путём.
Форма вообще не хотит показываться? Или начинает что-то выполяится ивалится?
«Железная» конфигурация везде одинакова?
Я предлагаю написать трассер, который поместить в проблемную форму и пусть он документирует в лог-файл все шаги — на основании этого можно «выщемить» более точно место ошибки. Но это прокатит только тогда, когда форма грузится сама по себе. У меня подозрение появляется, что виноват может оказаться не SpinButton.

Железо — одинаково. Доигрался:) Теперь на сбойных машинах формы вообще не запускаются. А при попытках войти в редактор — это же сообщение, потом выдаёт «out of memory». При многократных нажатиях на всплывающих окнах в редактор запускает, но к форме доступ не даёт:(

Ммм-да. Тут, боюсь, самое надёжное — офис снести и поставить по-новой. Токмо он просто так не сносится (тут это где-то обсуждалось уже — и ссылки есть — поищи тему типа «Редактор VB в Outlook не запускается»). Ладно, а перезагрузка не помогает?
Да, вот ссылка:
http://forum.codenet.ru/showthread.php?threadid=15772
Но пока не спеши — что-нить сообразим. Скорее всего, Офис изначально «криво» встал на этих машинах.

Переставил офис — всё заработало.
Спасибо всем за помощь.

Источник

System error h8007007e 2147024770 не найден указанный модуль excel

Вопрос

При открытии надстройки Excel система выдает ошибку вида:

Class Not Registered. Looking For Object With CLSID

1. Запускал Excel с ключом /regserver.

2. Регистрировал msstkprp.dll.

Версия Excel — 2010.

Ответы

Это коммерческая надстройка, пробовали ли Вы связаться с Автором этой надстройки?

Тем более об этой ошибке Автор говорит:

Да, я Жук, три пары лапок и фасеточные глаза :))

  • Изменено Жук MVP, Moderator 23 января 2014 г. 9:25
  • Помечено в качестве ответа Dmitry Losyankov 23 января 2014 г. 11:19

Все ответы

При регистрации fm20.dll тип ошибки изменился:

System Error &H8007007E (-2147024770). Не найден указанный модуль.

Compile error in hidden module: mob_About.

This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.

На остальных машинах макрос запускается без проблем (Excel 2010 и 2013)

Источник

System error h8007007e 2147024770 не найден указанный модуль excel

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Answers

I would like to confirm what program has this issue and what OCX and DLL files cannot installed.

This issue may occur if this program is not fully compatible with windows 7. To troubleshoot this issue, please perform the following steps. If the issue persists, you may need to contact the distributor to request a Windows 7 compatible version.

Register program components

1. Please click Start button, click All Programs, click Accessories, then right-click Command Prompt, in the right click menu, please click Run as administrator.

2. Type the following commands, press Enter after each line.

Please replace the * with the actual file name.

If the issue persists, try installing the program in compatible mode:

Install program under compatibility mode & Administrator level

1. Right click on the installation file (setup.exe) and click Properties.

2. Click on the Compatibility tab.

3. Select “ Run this program in compatibility mode for.”

4. Choose Windows Vista (Service Pack 2) from the drop down list.

5. Select “ Run this program as an administrator” option under the Privilege Level topic.

6. Click Apply, click OK.

Right click on the setup file and choose Run as administrator to install it again.

If the issue persists, you can collect Screenshot of the error and upload it to the http://skydrive.live.com/ using your Live ID and I will check it:

1. If the error message appears, press the Print Screen key (PrtScn) on your keyboard.

2. Click the «Start» menu, type «mspaint» in the Search Bar and Press Enter.

3. In the Paint program, click the «Edit» menu, click «Paste», click the «File» menu, and click «Save».

4. The «Save As» dialogue box will appear. Type a file name in the «File name:» box, for example: «screenshot».

5. Make sure «JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)» is selected in the «Save as type» box, click Desktop on the left pane and then click «Save».

Vivian Xing — MSFT

The programmer that made the application forgot to pack the depending modules the application needs to run.
You can either contact the application developer, or use Depends to find which modules the application needs.

I would like to confirm what program has this issue and what OCX and DLL files cannot installed.

This issue may occur if this program is not fully compatible with windows 7. To troubleshoot this issue, please perform the following steps. If the issue persists, you may need to contact the distributor to request a Windows 7 compatible version.

Register program components

1. Please click Start button, click All Programs, click Accessories, then right-click Command Prompt, in the right click menu, please click Run as administrator.

2. Type the following commands, press Enter after each line.

Please replace the * with the actual file name.

If the issue persists, try installing the program in compatible mode:

Install program under compatibility mode & Administrator level

1. Right click on the installation file (setup.exe) and click Properties.

2. Click on the Compatibility tab.

3. Select “ Run this program in compatibility mode for.”

4. Choose Windows Vista (Service Pack 2) from the drop down list.

5. Select “ Run this program as an administrator” option under the Privilege Level topic.

6. Click Apply, click OK.

Right click on the setup file and choose Run as administrator to install it again.

If the issue persists, you can collect Screenshot of the error and upload it to the http://skydrive.live.com/ using your Live ID and I will check it:

1. If the error message appears, press the Print Screen key (PrtScn) on your keyboard.

2. Click the «Start» menu, type «mspaint» in the Search Bar and Press Enter.

3. In the Paint program, click the «Edit» menu, click «Paste», click the «File» menu, and click «Save».

4. The «Save As» dialogue box will appear. Type a file name in the «File name:» box, for example: «screenshot».

5. Make sure «JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)» is selected in the «Save as type» box, click Desktop on the left pane and then click «Save».

Vivian Xing — MSFT

It’s Asif from Faisalabad, Pakistan.

I was also facing same problem when I install my deployed setup to other computer. Software reply me the same error. How I was clear this error. It’s easy.

(i) You need registered FM20.DLL file..

If you have not FM20.DLL file. no problem there are two kind of files for FM20.DLL. 1st in windows default file and 2nd is Office 97 or later version.

for deploy your setup collect FM20.DLL from Office1.Cab file. You can unpack this file using WINRAR from OFFICE1.CAB.

Both files have different size. Windows default file have 1.07MB and Office file is 1.09MB.

It’s easy and I was solved my problem with this trick.

Источник

System error h8007007e 2147024770 не найден указанный модуль excel

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Answers

I would like to confirm what program has this issue and what OCX and DLL files cannot installed.

This issue may occur if this program is not fully compatible with windows 7. To troubleshoot this issue, please perform the following steps. If the issue persists, you may need to contact the distributor to request a Windows 7 compatible version.

Register program components

1. Please click Start button, click All Programs, click Accessories, then right-click Command Prompt, in the right click menu, please click Run as administrator.

2. Type the following commands, press Enter after each line.

Please replace the * with the actual file name.

If the issue persists, try installing the program in compatible mode:

Install program under compatibility mode & Administrator level

1. Right click on the installation file (setup.exe) and click Properties.

2. Click on the Compatibility tab.

3. Select “ Run this program in compatibility mode for.”

4. Choose Windows Vista (Service Pack 2) from the drop down list.

5. Select “ Run this program as an administrator” option under the Privilege Level topic.

6. Click Apply, click OK.

Right click on the setup file and choose Run as administrator to install it again.

If the issue persists, you can collect Screenshot of the error and upload it to the http://skydrive.live.com/ using your Live ID and I will check it:

1. If the error message appears, press the Print Screen key (PrtScn) on your keyboard.

2. Click the «Start» menu, type «mspaint» in the Search Bar and Press Enter.

3. In the Paint program, click the «Edit» menu, click «Paste», click the «File» menu, and click «Save».

4. The «Save As» dialogue box will appear. Type a file name in the «File name:» box, for example: «screenshot».

5. Make sure «JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)» is selected in the «Save as type» box, click Desktop on the left pane and then click «Save».

Vivian Xing — MSFT

The programmer that made the application forgot to pack the depending modules the application needs to run.
You can either contact the application developer, or use Depends to find which modules the application needs.

I would like to confirm what program has this issue and what OCX and DLL files cannot installed.

This issue may occur if this program is not fully compatible with windows 7. To troubleshoot this issue, please perform the following steps. If the issue persists, you may need to contact the distributor to request a Windows 7 compatible version.

Register program components

1. Please click Start button, click All Programs, click Accessories, then right-click Command Prompt, in the right click menu, please click Run as administrator.

2. Type the following commands, press Enter after each line.

Please replace the * with the actual file name.

If the issue persists, try installing the program in compatible mode:

Install program under compatibility mode & Administrator level

1. Right click on the installation file (setup.exe) and click Properties.

2. Click on the Compatibility tab.

3. Select “ Run this program in compatibility mode for.”

4. Choose Windows Vista (Service Pack 2) from the drop down list.

5. Select “ Run this program as an administrator” option under the Privilege Level topic.

6. Click Apply, click OK.

Right click on the setup file and choose Run as administrator to install it again.

If the issue persists, you can collect Screenshot of the error and upload it to the http://skydrive.live.com/ using your Live ID and I will check it:

1. If the error message appears, press the Print Screen key (PrtScn) on your keyboard.

2. Click the «Start» menu, type «mspaint» in the Search Bar and Press Enter.

3. In the Paint program, click the «Edit» menu, click «Paste», click the «File» menu, and click «Save».

4. The «Save As» dialogue box will appear. Type a file name in the «File name:» box, for example: «screenshot».

5. Make sure «JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)» is selected in the «Save as type» box, click Desktop on the left pane and then click «Save».

Vivian Xing — MSFT

It’s Asif from Faisalabad, Pakistan.

I was also facing same problem when I install my deployed setup to other computer. Software reply me the same error. How I was clear this error. It’s easy.

(i) You need registered FM20.DLL file..

If you have not FM20.DLL file. no problem there are two kind of files for FM20.DLL. 1st in windows default file and 2nd is Office 97 or later version.

for deploy your setup collect FM20.DLL from Office1.Cab file. You can unpack this file using WINRAR from OFFICE1.CAB.

Both files have different size. Windows default file have 1.07MB and Office file is 1.09MB.

It’s easy and I was solved my problem with this trick.

Источник

 

Nutik

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

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

#1

29.06.2018 11:31:19

Добрый день
Столкнулся с интересной проблемой. В приложении находится xlsm файл, который не работает всего на 2х компьютерах в офисе.
Если открыть файл и не запускать макрос программа не дает

вручную

скопировать первый лист. Вместо копии листа появляется полностью пустой лист2.
Если приложенный файл сохранить как обычный xlsx, то при открытии все работает нормально. Другие xlsm файлы ведут себя нормально.

Если выполнить макрос, то в указанном файле отчета(Report, формат xls) первый лист копируется нормально. А на пункте  SPlan.Worksheets(1).Copy After:=Worksheets(1) выбьет ошибку.

Что в этом коде может стопорить работу Excel даже без запуска макроса?
Офисы у всех 2013, версия 15.0.50.41.1001(последняя)
Windows 7
Сторонних антивирусов нет

Код
Sub Test()
 Set SPlan = ThisWorkbook
 SPlanCountOfRows = Cells(Rows.Count, 1).End(xlUp).Row
 ReportPath = Application.GetOpenFilename("Excel Files (*.xls*),*.xls*", 1, "Укажите файл отчета ", , False)
 If fileToOpen <> False Then Workbooks.Open fileToOpen
  Set Report = Application.Workbooks.Open(ReportPath, False)
 With Application
        '.ScreenUpdating = False   
        '.DisplayAlerts = False
 End With
 
 ReportCountOfRows = Cells(Rows.Count, 1).End(xlUp).Row
 Report.Worksheets(1).Copy After:=Worksheets(1)
 Report.Worksheets(2).Name = "Forecast"
 
 SPlan.Activate
 SPlan.Worksheets(1).Copy After:=Worksheets(1)
 SPlan.Worksheets(2).Name = "Forecast"

End Sub

Спасибо

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

  • Macros test.xlsm (18.31 КБ)

Изменено: Nutik29.06.2018 11:40:30

 

Юрий М

Модератор

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

Контакты см. в профиле

#2

29.06.2018 12:03:18

Цитата
Nutik написал:
Если открыть файл и не запускать макрос программа не дает вручную скопировать первый лист. Вместо копии листа появляется полностью пустой лист2.

Проверил: лист скопировался.

 

Nutik

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

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

На моем компьютере он тоже копируется, как и у 10 остальных. Но есть 2 компьютера, где наличие этого макроса вызывает сбой работы Excel. Проверял даже так: создал новый документ, в нем макросом скопировал лист. Перезапустил документ, повторил, все работало. Но, стоило скопировать текст макроса, указанного выше,  в модуль — сразу же перестали копироваться листы. Причем я не запускал макрос.

Пробовал переносить текст мароса через блокнот, что бы книги Excel открывались по-очереди, результат одинаков: стоит этому тексту оказаться в модуле документа Excel, перестают копироваться листы.  

 

Юрий М

Модератор

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

Контакты см. в профиле

Странно… Копируете в стандартный модуль или в модуль листа? И ещё: это происходит при вставке ЛЮБОГО макроса или только этого?

 

Nutik

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

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

Пошаманил еще больше, выяснилось что достаточно вставить в пустой excel документ пустой Module1. При копировании листа вручную начинает выбивает ошибку VBA- Модуль не найден. Что это может быть?

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

  • Error.jpg (18.58 КБ)

 

Юрий М

Модератор

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

Контакты см. в профиле

Есть подозрение, что на тех двух «плохих» машинах криво установился Офис.
Или VBA галку не поставили при установке.

 

Nutik

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

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

Но другие документы с макросами работают

 

skais675

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

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

Nutik

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

 

Юрий М

Модератор

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

Контакты см. в профиле

Тогда, возможно, что-то с первым листом. Удалите его и создайте новый.

 

Nutik

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

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

#10

29.06.2018 14:57:45

Приведенный код это выдержка из макроса. Задача скопировать данные во второй лист, что бы первый оставался без изменений и всегда можно было восстановить исходные данные:) Но,т.к даже эта часть не работает, поэтому я и выложил только ее.  

Повторюсь, проблема в любом созданном документе xlsm, куда достаточно вставить модуль и сохранить. Даже без единого символа внутри. Мой код оказался не причем, просто с этого момента вылезла ошибка.

Но есть файлы xlsm, которые работают нормально с модулями. Может быть можно очистить какой-то кеш у Excel?

Понравилась статья? Поделить с друзьями:
  • Excel модуль комплексного числа
  • Excel модель данных функции
  • Excel модель данных примеры
  • Excel модель данных книги
  • Excel моделирование физических процессов