Skip to content Skip to sidebar Skip to footer

'click' A Website's Button With Excel Vba

I have a script I am writing where I can execute a form on a website through a macro. I am able to open up internet explorer and pass all the variables correctly however when it co

Solution 1:

With IE.document

    Set elems = .getElementsByTagName("input")
    For Each e In elems

        If (e.getAttribute("value") = "Buy") Then
            e.Click
            Exit For
        End If

    Next e

End With

the above snippet performs the task needed


Post a Comment for "'click' A Website's Button With Excel Vba"