Set IE = CreateObject("InternetExplorer.Application") 有时莫名会导致以下错误
Run-time error '-2147467259 (80004005)'
Automation error
Unspecified error
运行时错误'-2147467259(80004005)'
自动化错误
电脑重启后又正常,后来发现是因为创建的IE对象没有在窗体关闭时退出或释放, 在任务管理器中可看到
一定要在窗体关闭时
IE.Quit
set IE =nothing