VBA Internet Explorer Automation 'Permission Denied'

后端 未结 8 1326
别那么骄傲
别那么骄傲 2020-12-19 23:11
Dim IE as New InternetExplorer
IE.Visible = True

IE.Navigate(\"http://www.google.com\")

Do Until IE.Busy = False
Loop

IE.document.getElementsByTagName(\"Input\")(         


        
8条回答
  •  生来不讨喜
    2020-12-19 23:57

    The solution of resetting the HTMLDocument Object works for me too i.e.

    'After Page Loads, Reset HTMLDocument Object and Wait 1 Second Before recreating It
    Set html = Nothing
    Application.Wait Now + TimeValue("0:00:01") '<<< This seems to really help
    Set html = IE.document
    

    None of the other solutions have solved my problem.

提交回复
热议问题