et
the_input_elements = ie.Document.getElementsByTagName("td") For Each input_element In the_input_elements If input_element.getAttribute("colid") = "8" Then If input_element.innerText = "CUSTOMER" Then input_element.Focus end if exit for next