Selecting an HTML Option in List Box using Webbrowser...HELP!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wxscooter
    New Member
    • Mar 2007
    • 11

    Selecting an HTML Option in List Box using Webbrowser...HELP!

    I'm making a VB6 program that uses WebBrowser to enter data automatically for me on a particular website.

    How do I tell the program to select (highlight or click) an option from a list box? I was trying this:

    WebBrowser1.Doc ument.getelemen tByID("_ctl1:_c tl0:Main:Main:S electRecipients 1:ListBoxPhoneB ook").Option("G 10195").Click

    But had no luck. I'm not even sure if I'm doing it right. The List Box's name is correct and the option value I want to select is right. Am I doing something wrong?

    Any help would be greatly appreciated.
Working...