VBA Macro to interact with specific website
<p>I'm trying to get my macro to log me into a website.  So far I have it entering my username and password, But I'm at a loss on how to have it "click" the button.  The website is <a href="https://www.aum-inc.com/log-in" rel="nofollow">https://www.aum-inc.com/log-in</a> and the log-in button isn't the one kind I know how to activate.  It has some sort of javascript. Below is my code, with HELP written by the two lines that I need to update for this specific case.</p>

<pre><code>Sub AUM()
 'we define the essential variables
Dim ie As Object
Dim pwd, username
Dim button

'add the "Microsoft Internet Controls" reference in your VBA Project indirectly
Set ie = CreateObject("InternetExplorer.Application")
With ie
    .Visible = True
    .Navigate ("https://www.aum-inc.com/log-in")
    While ie.ReadyState &lt;&gt; 4
        DoEvents
    Wend
    Set username = .document.getElementById("cphContent_C001_txtUserName") 'id of the username control (HTML Control)
    Set pwd = .document.getElementById("cphContent_C001_txtPassword") 'id of the password control (HTML Control)
    'HELP Set button = .document.getElementById("ctl00$cphContent$C001$btnPropLogon") 'id of the button control (HTML Control)
    username.Value = "Account1234"
    pwd.Value = "Password1234"
    'HELP button.Click
    While ie.ReadyState &lt;&gt; 4
        DoEvents
    Wend
End With

'insert some sort of code in VBA to find account

Set ie = Nothing
</code></pre>

<p>End Sub</p>