Hello,
I have to download some information from a website, for which I'm trying to use this code:
I'm getting an error on the line: ie.Document.forms(0).submit.Click. I guess, this is because Submit is not a button, but a Javascript link.
Can anyone help me correct my code here?
Thanks,
Karan
I have to download some information from a website, for which I'm trying to use this code:
Code:
Dim ie As New InternetExplorer
ie.Navigate "http://mca.gov.in/DCAPortalWeb/dca/MyMCALogin.do?method=setDefaultProperty&mode=31"
Do
Loop Until ie.ReadyState = READYSTATE_COMPLETE
ie.Document.forms(0).cmpnyID.Value = "U01200PN2014PTC151335" 'To put value in TextBox
ie.Document.forms(0).submit.Click
I'm getting an error on the line: ie.Document.forms(0).submit.Click. I guess, this is because Submit is not a button, but a Javascript link.
Can anyone help me correct my code here?
Thanks,
Karan