Guest User

Untitled

a guest
Mar 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <td width="13%" align="center" rowSpan="1" colSpan="1">
  2. <input name="" onclick="Javascript:document.forms[0].submit();return false;" type="image" srx="/cmh/cmh/xxxxxx" border="0"></input>
  3.  
  4. Sub ToComb()
  5. Dim ie As Object
  6. Dim itm As IHTMLElement
  7.  
  8. Set ie = CreateObject("InternetExplorer.Application")
  9. ie.Visible = True
  10. ie.navigate "http://icc-
  11. cadb.eu.airbus.corp:8087/cmh/consultation/preSearchTRSTDMAS.do?
  12. clearBackList=true&CMH_NO_STORING_fromMenu=true"
  13. While ie.Busy Or ie.readyState <> 4: DoEvents: Wend
  14.  
  15. Set itm = ie.document.getElementsByName("searchByTRSMP")(0)
  16. If Not itm Is Nothing Then itm.Value = "k20734"
  17. Set Doc = ie.document
  18.  
  19.  
  20. Set tags = ie.document.getElementsByTagName("")
  21. For Each tagx In tags
  22. If tagx.Value = "Next" Then
  23. tagx.Click
  24. Exit For
  25. End If
  26. Next
  27. End Sub
  28.  
  29. Set tags = ie.Document.GetElementsByTagname("Input")
  30.  
  31. For Each tagx In tags
  32. If tagx.srx= "/cmh/cmh/xxxxxx" Then
  33. tagx.Click
  34. End If
  35. Next
Add Comment
Please, Sign In to add comment