Private Sub Form_Load() WebBrowser1.Navigate "https://wwwapps.ups.com/pickup/schedule?loc=fr_FR&WT.svl=PNRO_L1" End Sub Private Sub Form_Resize() WebBrowser1.Move 0, 0, ScaleWidth, ScaleHeight End Sub Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) Dim oObj As Object Dim oDoc As HTMLDocument If WebBrowser1.ReadyState = READYSTATE_COMPLETE Then Set oDoc = pDisp.Document Set oObj = oDoc.getElementById("addrMDCompanyId") oObj.Value = "company" Set oObj = oDoc.getElementById("addrMDPhoneId") oObj.Value = "0102030405" Set oObj = oDoc.getElementById("addressId") oObj.Value = "12 rue Leblanc" Set oObj = oDoc.getElementById("pd2Id") oObj.Value = "Paris" Set oObj = oDoc.getElementById("postalcode") oObj.Value = "75015" DoEvents oObj.FireEvent "onblur" Do DoEvents Loop While Nothing Is oDoc.getElementById("chkSrvDomId3'") Set oObj = oDoc.getElementById("chkSrvDomId3'") oObj.Checked = "checked" DoEvents oObj.FireEvent "onclick" End If End Sub
aucun trace dans le code source
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionoDoc = pDisp.Document