Não consegui!
Sou leigo, se eu te enviar o meu código você consegue me ajudar?
Segue:
Sub Cotação()
Dim MyDate
Dim IE As Object
Set IE = CreateObject("InternetExplorer.application")
With IE
.Visible = True
.NAVIGATE ("
https://servicos.gollog.com.br/Home/Inicio#cotacao")
While .Busy Or .readyState <> 4:
DoEvents:
Wend
IE.document.getElementById("select_data").Value = Range("F8")
IE.document.getElementById("input_cotacao").Value = Range("C6")
IE.document.getElementById("input_destino").Value = Range("C22")
IE.document.getElementById("input_cotacao_2").Value = ("1")
IE.document.getElementById("input_destino_1").Value = Range("C8")
IE.document.getElementById("select_produto").Value = Range("F6")
IE.document.getElementById("input_entrega").Click
'Application.EnableEvents = False
' esta instrução deixa de ser necessária por a condição seguinte deixar de se verificar
Dim vaiqueda As Integer
If vaiqueda = Range("G15") Then
vaiqueda = Range("G15")
Select Case vaiqueda
Case "SIM"
Call cotação_SP
Case Else
End Select
End If
'Application.EnableEvents = True
IE.document.getElementById("quote").Click
While .Busy Or .readyState <> 4:
DoEvents:
Wend
On Error GoTo Invalido
IE.document.getElementById("input_name").Value = ("Marcos")
IE.document.getElementById("input_phone").Value = ("(99) 9999-99999")
IE.document.getElementById("input_email").Value = ("
marcos.abreu@spharmu.com.br")
IE.document.getElementById("input_company").Value = ("SPecial Pharmus")
Dim objElementCol As Object
Dim objElement As Object
Set objElementCol = IE.document.getElementsByTagName("input")
For Each objElement In objElementCol
If objElement.Value = "Cadastrar" Then
bjElement.Click
Exit For
End If
Next objElement
While .Busy Or .readyState <> 4:
DoEvents:
Wend
End With
Invalido:
MsgBox "Valor disponível"
End Sub