I want to find all the forms and input control names within a given IE webpage in order to fill them all automatically with some required values (in fact I hope to automate this part I’m now simply doing by ‘keyboard entering’)
To do that I need to be able to refer to the proper forms and input control names but because it’s a complex web page written with asp (I’m a bit lost with that!) I’m wondering if there is a vba code to retrieve such information (all form and control names form a given web page)?
I have worked out this code which is failing in the referencing of the proper form or control names, I presume…. (error 440)
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate http://....... ‘ it's a password protected webpage
.Visible = True
With .document.forms("invia") ' it’s failing here
.c76.Value = "09"
.submit
End With
End With
Set IE = Nothing
To do that I need to be able to refer to the proper forms and input control names but because it’s a complex web page written with asp (I’m a bit lost with that!) I’m wondering if there is a vba code to retrieve such information (all form and control names form a given web page)?
I have worked out this code which is failing in the referencing of the proper form or control names, I presume…. (error 440)
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate http://....... ‘ it's a password protected webpage
.Visible = True
With .document.forms("invia") ' it’s failing here
.c76.Value = "09"
.submit
End With
End With
Set IE = Nothing