Internet Explorer VBA Automation Error: The object Invoked has disconnected from its clients

后端 未结 1 1863
渐次进展
渐次进展 2020-12-10 17:12

I\'m trying to write code that will read a value from Excel, look it up in an internal web based system and store the results back in the Excel. It reads the Excel with no p

相关标签:
1条回答
  • 2020-12-10 17:42

    Changing to:

    Dim ie As InternetExplorer
    Set ie = New InternetExplorerMedium
    ...
    

    Solved the problem. Plus I did need to add back the Do loop mentioned in the comments:

    Do
        DoEvents
    Loop Until ie.ReadyState = READYSTATE_COMPLETE
    
    0 讨论(0)
提交回复
热议问题