Ciao Mauro,
grazie per la tua risposta, anche stavolta hai risolto il mio problema! Adesso però ne sorge uno nuovo: ho scritto il seguente codice per andare sulla pagina web, inserire i dati ed effettuare il log-in:
________________________________________________________
Dim HTMLDoc As HTMLDocument
Dim oBrowser As InternetExplorer
Dim oHTML_Element As IHTMLElement
Dim sURL As String
On Error GoTo Err_Clear
sURL = "https://www.commerzbanking.de/P-Portal2/XML/IFILPortal/pgf.html?Tab=3&ifil=coba_pk"
Set oBrowser = New InternetExplorer
oBrowser.Silent = True
oBrowser.timeout = 60
oBrowser.navigate sURL
oBrowser.Visible = True
Do
' Wait till the Browser is loaded
Loop Until oBrowser.readyState = READYSTATE_COMPLETE
Set HTMLDoc = oBrowser.document
HTMLDoc.all.PltLogin_8_txtTeilnehmernummer.Value = "Username"
HTMLDoc.all.PltLogin_8_txtPIN.Value = "Password"
For Each oHTML_Element In HTMLDoc.getElementsByTagName("input")
If oHTML_Element.Name = "PltLogin_8_btnLogin" Then oHTML_Element.Click: Exit For
Next
' oBrowser.Refresh ' Refresh If Needed
Err_Clear:
If Err <> 0 Then
Err.Clear
Resume Next
End If
________________________________________________________
Il problema è che, dopo aver eseguito questo accesso, all'interno della nuova pagina vorrei eseguire nuovamente l'operazione di cliccare un bottone come ho fatto per effettuare il login (l'ultimo ciclo For). Tuttavia non riesco ad impostare quest'operazione,
per non parlare del fatto che ho inserito un MsgBox nell' "Err_Clear" e questo si apre (mostrando quindi che al termine del ciclo sopraggiunge un errore). Consigli??