Giải quyết lỗi Compile error in hidden Module: Module 1

Liên hệ QC

trankhanhlvc

Thành viên mới
Tham gia
7/3/11
Bài viết
9
Được thích
0
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!!!
 
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.
 
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ự.
 
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 :(

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:
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!
 
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!
 
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
 
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
 
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.
 
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:
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
 
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.
 
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
 
Bạn chỉ cần xoá file AExcel trong đường dẫn sau là xong
C:\Users\User\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./-*+/

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.
 
Bản cài Win x64 với Office x86 thì chạy tốt. Nhưng Office x64 thì lỗi như vậy
 
Web KT
Back
Top Bottom