AmyL
asked on
Populating web form
Can I force a select box to a certain selection based on it's index number instead of its value? For instance, my guess is that it would look something like:
ie.Document.All("MYSELECTB OX").Value = ie.Document.All("MYSELECTB OX").Optio ns(1)
(Of course, that line didn't work for me, hence I am posting this question :-)
ie.Document.All("MYSELECTB
(Of course, that line didn't work for me, hence I am posting this question :-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For future problems such as this, just add a reference ("Project" -> "References...") of "Microsoft HTML Object Library". You can then view the methods/properties of a certain HTML element (HTMLSelectElement for example) and most-likely find your answer. I didn't know the answer.. did what I mentioned above in a minute or so and knew. :)
ASKER