I am trying to write a vba to fill out a form details from excel and click a submit button using . I am new to vba and have got everything figured out except how to click the submit button.
My code is
Dim a
Set a = doc.getElementsByClassName("button")(1)
a.Click
Do While ie.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
No error comes up but it doesn't seem to do anything. Normally when the submit button is clicked a message pops up on screen saying "details uploaded", the URL doesn't change.
Source code from site is
<a class="button" onclick="document.getElementById('CustomTableInbox').innerHTML='';JS_UpdateTrack();" href="javascript:;">Submit</a>
Any help would be great!
