返回列表 上一主題 發帖

我使用Dictionary,執行時卻出現Automation 錯誤找不到指定的模組

我使用Dictionary,執行時卻出現Automation 錯誤找不到指定的模組

我的環境是
windows xp sp3
office 2003

執行下列程式就會出現

執行階段錯誤 '-2147024770(8007007e)':

Automation 錯誤
找不到指定的模組。


Private Sub CommandButton1_Click()
    Set dictAbse0 = CreateObject("Scripting.Dictionary") 'An alternative
    dictAbse0.Add "1", 23
    Debug.Print dictAbse0("1")
End Sub
請問有人遇過這樣的問題,要如何解決.

回復 3# GBKEE


    謝謝各位,我昨天想說把所有的dll重新註冊,看可不可解決,結果執行完就可以用.
所有的dll重新註冊語法:
在dos模式下執行
for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1

TOP

        靜思自在 : 時時好心就是時時好日。
返回列表 上一主題