This is part of my code:
For Each itm In IE.document.all If itm = "[object HTMLInputElement]" Then n = n + 1 var_dados = Empty itm.Focus itm.Click Selec