Page 1 of 1

object library invalid or contains references to object...

Posted: Mon May 28, 2012 9:04 pm
by Bafnet
สวัสดีครับอาจารย์
อาจารย์สบายดีนะครับ นานแล้วที่ไม่ได้มาเยี่ยมเยียน
วันนี้ไม่เรื่องขอคำอธิบายหน่อยครับ
คือจู่ๆไฟล์Excel ที่เคยรันได้ก็รันไม่ได้ มันแสดงกล่องโต้ตอบ
object library invalid or contains references to object definitions that could not be found
ผมก็หาวิธีแก้ ก็สามารถแก้ไข โดยไปเสาะหาจาก web นอก
ซึ่งพอจะเดาได้ว่า เป็นเพราะไฟล์ที่เป็น .exd :roll:

1. Exit all Excel processes.

2. Find and delete all files with .exd extension in one of the two following locations where USER is your Windows username:

for Windows XP: c:\documents and seettings\USER\Application Data\Microsoft\Forms\
For Windows 7 or Vista: C:\Users\USER\AppData\Microsoft\Forms\
or C:\Users\USER\AppData\Roaming\Microsoft\Forms\
or C;\Users\USER\AppData\Local\Temp\VBE
I was able to fix it by renaming C:\Users\<USERNAME>\AppData\Roaming\Forms to forms.old. Restarted excel and the error went bye-bye.

ผมอยากรบกวนอาจารย์อธิบายแบบให้คนไทยไม่เก่งอังกฤษเข้าใจหน่อยครับว่า
เหตุแบบนี้เกิดขึ้นได้อย่างไร เพราะอะไร จึงทำให้ microsolf Office สร้างไฟล์ .EXD
แล้วเราจะมีวิธีป้องกัน หรือแก้ไขเพื่อไม่ให้สิ่งนี้เกิดขึ้นได้อย่างไรครับ

สุดท้ายนี้ขอให้อาจารย์มีสุขภาพกายใจที่แข็งแรง ระลึกถึงคุณความรู้ของอาจารย์เสมอครับ
ขอบคุณครับ :)

Re: object library invalid or contains references to object.

Posted: Mon May 28, 2012 9:21 pm
by snasui
:D การสร้างไฟล์ .EXD จะเกิดขึ้นใน Windows XP เมื่อมีการเพิ่ม Control ขึ้นมาใช้งานครับ ลองดูคำอธิบายเพิ่มเติมที่นี่ครับ http://support.microsoft.com/kb/290537