我无法运行以下子程序。我收到一条错误消息。
运行时错误-2147467259
Sub testing()
'Cria referencia e objeto do tipo IE
Dim ie As InternetExplorer
Set ie = New InternetExplorer
End Sub
我错过了什么吗? 我引用了以下库:
答案 0 :(得分:0)
来自MSDN:
Dim MyBrowser As SHDocVw.InternetExplorer
Set MyBrowser = New SHDocVw.InternetExplorer
答案 1 :(得分:0)
尝试使用
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
请参阅此MSDN reference。
如果错误仍然存在,请检查是否
IE is installed No modal dialogs from another IE instance - if present - are open No antivirus software is blocking it There are no ghost IE processes hanging in Task Manager`