Accessing IE tabs once created

后端 未结 4 1026
南笙
南笙 2020-12-05 21:53

Using VBA I can create an InternetExplorer object with 3 different tabs using the following

Option Explicit

Public Enum IE_READYSTATE
    Uninitialised = 0
         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-05 22:35

    Simple workaround is just reassign the new tab to the object

    IE.navigate "http://www.bbc.co.uk/news/", CLng(2048)
    Do While IE.Busy Or Not IE.readyState = IE_READYSTATE.complete: DoEvents: Loop
    With CreateObject("Shell.Application").Windows
    Set IE = .Item(.Count - 1)
    End With
    

提交回复
热议问题