VBA Internet explorer Automation error

前端 未结 1 399
庸人自扰
庸人自扰 2021-01-28 03:35

I was trying to set up a public test environment to see if anyone would be able to help me with another question I asked this morning and I\'m getting this error which I was not

相关标签:
1条回答
  • 2021-01-28 04:19

    Use late-binding to avoid additional reference to a library and this will fix versioning issues if any.

    Sub GetBranches()
        Dim objIE as Object 
        Set objIE = CreateObject("InternetExplorer.Application")
    
        objIE.Visible = True
    
        objIE.navigate "https://casadasereia.net/vbatests/viewtree241653.html"
    
        ' wait for browser
        Do While objIE.Busy = True Or objIE.readyState <> 4
            DoEvents
        Loop
    End Sub
    
    0 讨论(0)
提交回复
热议问题