0
Sub buscacep()
Range("B3:D3").ClearContents
Set ie = CreateObject("InternetExplorer.application")
ie.navigate "https://www.achecep.com.br/"
ie.Visible = True
Do While ie.busy And ie.readystate <> "READYSTATE_COMPLETE"
DoEvents
Loop
ie.document.getElementByTagName("input")(0).Value = Cells(3, 2).Value
ie.document.getElementByClassName("botao")(0).Click
Do While ie.busy And ie.readystate <> "READYSTATE_COMPLETE"
DoEvents
Loop
End Sub
This is the code, but I can’t find the error. And when debugging, the line that shows error is:
ie.document.getElementByTagName("input")(0).Value = Cells(3, 2).Value