I am trying to submit a form on a webpage. It doesn't matter to me whether its done by attempting to click the button or submitting the form. I just started attempting to automate IE for the first time a few days ago. I apologize for any miscommunication on my part. Any help anyone could provide is appreciated.
I have tried using this as well, but it does not submit the form I want.
Here is the html code relevant to the button I want to click.
Rich (BB code):
Rich (BB code):
Dim objIE As Object
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate "My Url"
objIE.Visible = True
Do
DoEvents
Loop Until objIE.ReadyState = 4
objIE.document.GetElementByID("dnd").Click
objIE.document.GetElementByID("classic").Click
objIE.document.GetElementByID("I am attempting to click button at this point").Click
I have tried using this as well, but it does not submit the form I want.
Rich (BB code):
Rich (BB code):
objIE.Document.forms(0).submit
Here is the html code relevant to the button I want to click.
Rich (BB code):
Rich (BB code):
<em><input name="jsubmit" type="submit" value="Submit Changes" class="ysf-cta ysf-cta-small ysf-cta-save"> <input type="submit" name="jsubmit" value="Cancel" class="ysf-cta ysf-cta-small ysf-cta-reset ysf-cta-cancel" disabled></em>
</pre>