Utilizzando VBA posso creare un oggetto InternetExplorer con 3 diverse schede utilizzando la seguenteAccesso schede di IE una volta creati
Option Explicit
Public Enum IE_READYSTATE
Uninitialised = 0
Loading = 1
Loaded = 2
Interactive = 3
complete = 4
End Enum
Sub Example_Click()
Dim ieApp As clsIE
'Create IE and login
If ieApp Is Nothing Then
Set ieApp = New clsIE
With ieApp
'IE Tab1
.IE.Visible = True
.IE.navigate "http://www.bbc.co.uk/news/"
Do While .IE.Busy Or Not .IE.readyState = IE_READYSTATE.complete: DoEvents: Loop
'IE Tab2
.IE.Navigate2 "http://www.bbc.co.uk", CLng(2048)
Do While .IE.Busy Or Not .IE.readyState = IE_READYSTATE.complete: DoEvents: Loop
'IE Tab3
.IE.Navigate2 "http://www.bbc.co.uk", CLng(2048)
Do While .IE.Busy Or Not .IE.readyState = IE_READYSTATE.complete: DoEvents: Loop
End With
End If
End Sub
Come posso quindi accedere a queste schede per ....
- Quit/Chiudi una scheda specifica?
- Passare a un nuovo URL in una scheda specifica?
- Accedi a una scheda specifica DOM?
So come fare tutto questo con una sola scheda ma non più schede?
Would 5 se potessi :) – user3357963