Guest User

Untitled

a guest
Jan 24th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Sub pressBtn()
  2.  
  3. 'your html declarations & navigation
  4.  
  5. Dim btnColl As IHTMLElementCollection, btn As IHTMLElement
  6. Set btnColl = ie.document.getElementsByTagName("button")
  7. For Each btn In btnColl
  8. If btn.className = "edit" Then
  9. Exit For
  10. End If
  11. Next btn
  12. btn.Click
  13.  
  14. End Sub
Add Comment
Please, Sign In to add comment