Lỗi compile error in hidden module declarations32 trong word 2023

When you are working with Word or Excel and are using macro’s and you receive the following error “Compile error in hidden Module” you are probably missing Microsoft Visual Basic Common Controls. This is a .ocx file the should recite in your system32 or syswow64 folder. So the fix is pretty simple here:

Step 1 – Check if you have the file

Open your system folder and check if you have mscomct2.ocx or mscomctl.ocx

%windir%\syswow64 or %windir%\system32

If you have the files, the problem is something else. It could be a template-type addin that isn’t compatible with your Word version or something else. Either way stop reading here and start Googling.

Step 2 – Copy the file

Crap the file from another machine (if you have one where everything is working fine) or download it here or here and copy the file to:

Mình bị lỗi tương tự trong word. Xóa C:\Users\780\AppData\Roaming\Microsoft\Word\StartUp là ok. Thanks bác!

  • 22

    Bạn chỉ cần xoá file AExcel trong đường dẫn sau là xong C:\Users\User\AppData\Roaming\Microsoft\Excel\XLSTART

Hôm nay mình gặp lỗi này và đã thực hiện thành công theo hướng dẫn trên. Thanks bạn.

  • 23

Chào các bác, nghe bảo offcie 2016 rất hay và có thêm chức năng tell me ... nên em mới cài offcie 2016 hôm qua. Nhưng cứ mở excel ( word, power .. thì ko sao ) lên là lại báo lỗi Compile error in hidden module 1 em tìm hiểu trên mạng rất nhiều rồi làm theo nhưng vẫn ko sửa đc, các bác giúp em với ((

  • 24

    Khi em mở một file Excel bất kỳ trong lần sử dụng đầu tiên hoặc tắt file excel cuối cùng thì luôn hiện lên thông báo này:

Compile error in hidden module: Module 1. This error commonly occures when code is incompatible with the vesion, platform, or architecture of this application. Click "Help" for information on how to correct this error.

Mọi người giúp em giải quyết lỗi này với nhé!

Thanks all!!!

em bị giống hệt bác, bác sửa được ko bác oi

  • 25

    Bạn chỉ cần xoá file AExcel trong đường dẫn sau là xong C:\Users\User\AppData\Roaming\Microsoft\Excel\XLSTART

cái file đó có tác dụng gì vậy bác, xóa đi có ảnh hưởng gì ko

  • 26

    Chào các bác, nghe bảo offcie 2016 rất hay và có thêm chức năng tell me ... nên em mới cài offcie 2016 hôm qua. Nhưng cứ mở excel ( word, power .. thì ko sao ) lên là lại báo lỗi Compile error in hidden module 1 em tìm hiểu trên mạng rất nhiều rồi làm theo nhưng vẫn ko sửa đc, các bác giúp em với ((

Bạn phải lưu File (Save as) với dạng đuôi là (*.xlsm) hoặc (*.xlsb) nó mới chứa Macro.

Lỗi compile error in hidden module declarations32 trong word 2023

  • 27

    Chào các bác, nghe bảo offcie 2016 rất hay và có thêm chức năng tell me ... nên em mới cài offcie 2016 hôm qua. Nhưng cứ mở excel ( word, power .. thì ko sao ) lên là lại báo lỗi Compile error in hidden module 1 em tìm hiểu trên mạng rất nhiều rồi làm theo nhưng vẫn ko sửa đc, các bác giúp em với ((

Lỗi này xuất hiện khi file có chứa code đang bị lỗi nhưng lại đặt password VBA. Do không thể chỉ được lỗi nằm chỗ nào nên nó phải nói "Có cái gì đó lộn xộn ở trong trái ổi" Ngoài file có chưa code VBA thì tình trạng trên cũng sẽ xuất hiện nếu bạn cài 1 Addin bị lỗi hoặc file VBA lỗi nằm trong thư mục XLSTART

  • 28

Đã thử và thành công ! vui quá các bạn ạ ! các bạn làm theo hướng dẫn bên dưới nhé !

Lỗi compile error in hidden module declarations32 trong word 2023
Lỗi compile error in hidden module declarations32 trong word 2023

  • 29

Nhấn tổ hợp phím {win} + R

Lỗi compile error in hidden module declarations32 trong word 2023

Lỗi compile error in hidden module declarations32 trong word 2023

Kiều Mạnh

I don't program, I beat code into submission!!!
  • 30

Thử Code vầy xem sao

PHP:

Sub Test()
    MsgBox Application.StartupPath
    Shell "explorer.exe " & Application.StartupPath, vbNormalFocus
End Sub

  • 31

    Bạn vào folder như dưới & xóa bỏ file .xla có trong đó là ok. C:\Users\tênngười(đăngnhập)\AppData\Roaming\Microsoft\Excel\XLSTART

Vừa rồi do ku em vào cái addin của tool convert font nó bị lỗi này, mình vào lại, cũng vừa thử bên option của excel nhưng không được, vừa dùng vừa bực mình. Cám ơn bạn! Mình làm được theo cách này rồi.

Lỗi compile error in hidden module declarations32 trong word 2023

  • 32

    Vừa rồi do ku em vào cái addin của tool convert font nó bị lỗi này, mình vào lại, cũng vừa thử bên option của excel nhưng không được, vừa dùng vừa bực mình. Cám ơn bạn! Mình làm được theo cách này rồi.

Các Add-in ngày xưa nếu tác giả không chịu nâng cấp thường mắc lỗi liên quan đến Excel 64-bit haowcj không tương thích một số object nào đó.

Lỗi compile error in hidden module declarations32 trong word 2023

Lỗi compile error in hidden module declarations32 trong word 2023

  • 34

    View attachment 204641View attachment 204642View attachment 204643View attachment 204641View attachment 204642View attachment 204643 mình sài bản vntool _120 mà củng bị ( w7 64bit & win10 64bit + office 2010+ 64 bit) tìm đủ mọi cách ..nhiều phần mềm mà chưa dc có dowload file ( regapi.dll) dán dô.... system32) có dô >>C:\Users\User\AppData\Roaming\Microsoft\Excel\XLSTART ( nhưng trống lốc !! có méo gì đâu xóa ?? hay phiên bản của mình kog có chức năng đó?? )
AE AI BIK HỔ TRỢ VOIWSIIIIIIIIIIIIIIIIIIIIIIIIIII TÌM 4 -5 BỬA ROÀI MÀ CHƯA CÓ CÁCH KHẮC PHỤC. HAIZZ

Mình W10. office 2010 cài Accounting Helper để đọc chữ cũng gặp lỗi tương tự , cũng k có file trong XLStart để xóa (.

  • 35

Các bạn thử uncheck từng Add-ins trong Excel xem có thể do 1 add-ins nào đó gây ra (vd: của mình là do add-ins Euro Currency Tools gây ra):

  1. Vào File, chọn Options:

Lỗi compile error in hidden module declarations32 trong word 2023

Lỗi compile error in hidden module declarations32 trong word 2023

  1. Vào mục Add-ins, drop-up menu của Manage:, chọn Excel Add-ins --> nhấp Go

Lỗi compile error in hidden module declarations32 trong word 2023

  1. Uncheck thử từng add-ins, rồi tắt & khởi động lại Excel xem có còn bị ko. Nếu còn bị thì lặp lại từ bước 1, nhớ check lại Add-ins cần dùng mà ko gây lỗi. Nếu ko bị nữa thì là do Add-ins vừa được uncheck.

Lỗi compile error in hidden module declarations32 trong word 2023

  • 36

  • Compile error in hidden Module Module 1.rar 1 MB · Đọc: 93
  • 38

Có thể máy bạn đang sử dụng một số Add-ins và vì một lý do gì đó, một trong số chúng bị lỗi. Bây giờ bạn thử nghiệm gỡ bỏ lần lượt từng Add-ins có thể sẽ phát hiện ra lỗi do Add-ins nào.