vba ie problem

  • hello , i have this code
    For Each ele In objIE.Document.getElementsByTagName("*")
    If ele.innertext = "123" Then ele.Click
    so if finds "123" then click ele .
    i have a textbox in userform which has value "123" and i'm trying this
    If ele.innertext = "textbox1.text" Then ele.Click
    but it does not working.Why? Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!