Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: LSMConsultingPosted on 2009-03-03 at 04:48:33ID: 23783176
Your function below seems to be the one that fills in your values. It specifically references a control named "WebBrowser1", which is your web broswer control (at least I'd hope it is <g>).
(0).elemen ts(formtag ).Value = FillValue (0).elemen ts(formtag ).selected Index = Val(FillValue)
ect ect
Function FillForm(ByVal formtag, ByVal FillValue, ByVal isCombo As Boolean) As Boolean
Dim elemcollection As IHTMLElementCollection
Dim obj As Object
Dim element2 As HTMLInputElement
Dim element As HTMLInputElement
If Not isCombo Then
WebBrowser1.Document.Forms
Else
WebBrowser1.Document.Forms
End If
End Function
If you wanted to fill another document in a different webrowser control, you'd just reference that control in your If Not isCombo block:
WebBrowser2.Document.Forms
But I suspect there's more to it than this ... can you explain a bit more as to what you want to do?