Guest User

Untitled

a guest
Jan 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Function Registro(RTN As String)
  2. Dim IE As Object
  3. Dim Respuesta As String
  4.  
  5. Set IE = CreateObject("InternetExplorer.Application")
  6. IE.Navigate "http://enlacertn.sar.gob.hn"
  7. IE.Visible = True
  8. While IE.busy
  9. DoEvents
  10. Wend
  11. IE.document.All.Item("txtCriterio").Value = RTN
  12. IE.document.All("btnBuscar").Click
  13. Application.Wait (Now + TimeValue("0:00:03"))
  14.  
  15. Do Until IE.ReadyState = 4
  16. DoEvents
  17. Loop
  18. Respuesta = IE.document.getElementById("LblNombre").innertext
  19. Registro = Respuesta
  20. IE.Quit
  21. End Function
Add Comment
Please, Sign In to add comment