Sửa lỗi compile error in hidden module trong word năm 2024

khi add-on excel bị lỗi vì lý do gì đó mỗi lần mở excel lên gặp câu thông báo compile error in hidden module ....

Sửa lỗi compile error in hidden module trong word năm 2024

rất khó chịu với mỗi lần mở excel. cách giải quyết là vào đường dẫn bên dưới:

C:\Users\Tên User của bạn\AppData\Roaming\Microsoft\Excel\XLSTART

Xóa Add-on đó đi thì được. Hi vọng giải quyết được vấn đề của các bạn.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

  • Article
  • 05/02/2022

In this article

A protected 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.

Note

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.

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!!!

Sửa lỗi compile error in hidden module trong word năm 2024

  • 2

    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!!!

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.

  • 3

Gỡ add-in như thế nào vậy bạn?

Sửa lỗi compile error in hidden module trong word năm 2024

  • 4

    Gỡ add-in như thế nào vậy bạn?

Nếu bạn sử dụng Excel 2003, bạn chọn Tools\Add-Ins, sẽ thấy hiện một hộp thoại chứa những Add-in đang có. Tất nhiên bạn biết đâu là Add-In do bạn cài vào. Bạn hãy bỏ dấu tick tại tên Add-In đó. Sau đó, bạn đóng Excel lại, mở Windows Explorer và tìm đến thư mục C:\Users\Tên User\AppData\Roaming\Microsoft\AddIns (đây là đường dẫn trong Windows 7, trong Windows XP, đường dẫn này khác, nói chung là bạn sử dụng chức năng tìm kiếm của Windows sẽ thấy ngay), di chuyển file .xla tương ứng với Add-In muốn gỡ bỏ đi chỗ khác hoặc xóa đi. Cuối cùng khởi động lại Excel, chọn lại Tools\Add-Ins và chọn lại Add-In lúc nãy, sẽ hiện hộp thoại cảnh báo, bạn cứ nhấn Yes, Excel sẽ xóa tên Add-In này ra khỏi danh sách. Nếu bạn sử dụng Excel 2007, 2010, thay cho bước chọn Tools\Add-Ins, bạn chọn nút Office, chọn Excel Options, chọn tab Add-Ins, nhấn nút Go và thực hiện tương tự.

  • 5

Mình bị lỗi này khi cho file excel đó mở ở máy cài Win 7 64bit thôi. Máy khác chạy bình thường. Ko hiểu thế nào.

  • 6

    Mình bị lỗi này khi cho file excel đó mở ở máy cài Win 7 64bit thôi. Máy khác chạy bình thường. Ko hiểu thế nào.

mình cũng bị lỗi này trên win 7 64bit, các máy khác chạy win 7 32 thì vẫn ok. k hiểu thế nào

  • 7

    mình cũng bị lỗi này trên win 7 64bit, các máy khác chạy win 7 32 thì vẫn ok. k hiểu thế nào

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

Lần chỉnh sửa cuối: 21/12/12

  • 8

    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

thank. a nhiều!!!. e cũng đan gặp rắc rối này may mà sửa được.

Sửa lỗi compile error in hidden module trong word năm 2024

  • 9

    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

Chào bạn! Mình cũng bị lỗi này nhưng xử lý không được, Vào trong XLSTART không có file nào để xoá. Hiện tại minh dùng win 7 32 bit, office 2010. Ma khi enable macro mới bị lỗi, còn disenable thi hết nhưng không chạy macro được. nhờ bạn giúp mình với. Cảm ơn!

Sửa lỗi compile error in hidden module trong word năm 2024

  • 10

Lỗi này là do trong VBA, bạn đặt chế độ kiểm tra biến Option Explicit. Nhưng có 1 biến nào đó chưa khai báo, nên khi chạy marco nó hiện thông báo này. (phát hiện lỗi trong module ẩn). Cách xử lý: kiểm tra lại các biến trong module đã khai báo hết chưa. Hoặc bỏ Option explicit trong module đi (nhưng nên để option explicit và khai báo đầy đủ biến - khuyến cáo) Thân!

Sửa lỗi compile error in hidden module trong word năm 2024

  • 11

    Lỗi này là do trong VBA, bạn đặt chế độ kiểm tra biến Option Explicit. Nhưng có 1 biến nào đó chưa khai báo, nên khi chạy marco nó hiện thông báo này. (phát hiện lỗi trong module ẩn). Cách xử lý: kiểm tra lại các biến trong module đã khai báo hết chưa. Hoặc bỏ Option explicit trong module đi (nhưng nên để option explicit và khai báo đầy đủ biến - khuyến cáo) Thân!

Dám cá rằng: Giải thích này là trật lất! Bởi nếu cửa sổ VBA có Option Explicit + biến chưa khai báo thì Excel sẽ thông báo lỗi vầy:

Mã:

Compile error:
Variable not defined

  • 12

    Dám cá rằng: Giải thích này là trật lất! Bởi nếu cửa sổ VBA có Option Explicit + biến chưa khai báo thì Excel sẽ thông báo lỗi vầy:

Mã:

Compile error: Variable not defined

Cái này em cũng từng bi nhu the nay nhung ko phai do add in nao het ma do code cua minh vi vay hay kiem tra lai code

  • 13

    mình cũng bị lỗi này trên win 7 64bit, các máy khác chạy win 7 32 thì vẫn ok. k hiểu thế nào

Nếu addin do bạn viết (hoặc không khóa) bạn có thể phải thay thế một vài hàm API 32 bằng API 64 tương ứng (tìm trong GPE hoặc Google). Còn không sửa được thì chỉ còn nước gỡ addin.

Sửa lỗi compile error in hidden module trong word năm 2024

  • 14

    Cái này em cũng từng bi nhu the nay nhung ko phai do add in nao het ma do code cua minh vi vay hay kiem tra lai code

Cái đó tôi không biết đâu! Nhưng nếu không khai báo biến thì Excel sẽ không báo lỗi "Compile error in hidden module...", trừ phi là cửa sổ VBA đã đặt password Mà nếu đã đặt password thì bất cứ lỗi gì nó cũng sẽ báo "Compile error in hidden module...", bởi có ma nào biết trong ruột chứa cái gì đâu mà báo lỗi chính xác được Nhân cái chuyện password VBA, cũng xin nói thêm: Nếu đã quyết định password VBA thì cố mà viết code cho chắc ăn chút, để bảo đảm sẽ không có bất cứ lỗi nào xuất hiện. Bằng ngược lại, nếu thấy mình vẫn còn non tay thì làm ơn đừng pass làm gì (để người ta còn biết đường mà sửa)

Lần chỉnh sửa cuối: 29/6/15

  • 15

    Cái đó tôi không biết đâu! Nhưng nếu không khai báo biến thì Excel sẽ không báo lỗi "Compile error in hidden module...", trừ phi là cửa sổ VBA đã đặt password Mà nếu đã đặt password thì bất cứ lỗi gì nó cũng sẽ báo "Compile error in hidden module...", bởi có ma nào biết trong ruột chứa cái gì đâu mà báo lỗi chính xác được

check loi

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

ofm

Sửa lỗi compile error in hidden module trong word năm 2024

  • 16

    check loi

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

Làm theo 1 trong 2 cách sau thử đi.

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

Sửa lỗi compile error in hidden module trong word năm 2024

  • 17

    check loi

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

Thì chẳng phải tôi đã nói ở trên rồi sao?

Mà nếu đã đặt password thì bất cứ lỗi gì nó cũng sẽ báo "Compile error in hidden module...", bởi có ma nào biết trong ruột chứa cái gì đâu mà báo lỗi chính xác được
  • 18

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

Sửa lỗi compile error in hidden module trong word năm 2024

  • 19

    thank. a nhiều!!!. e cũng đan gặp rắc rối này may mà sửa được.
    Sửa lỗi compile error in hidden module trong word năm 2024

Bạn làm theo cách xóa tùm lum vậy là có thể toi rồi. Có thể thể trong 10 file xla hữu ích chỉ có một cái gây lỗi, thường do add-in cũ mà người viết chưa lường trước phiên bản Excel 32 hay 64-bit nên viết code bị lỗi. Bạn cần cân nhắc xóa file xla nào chứ không một số ứng dụng khác của bạn lại không chạy được.