By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,097 Members | 1,431 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,097 IT Pros & Developers. It's quick & easy.

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

P: 11
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.Document.getelementByID("_ctl1:_ctl0:M ain:Main:SelectRecipients1:ListBoxPhoneBook").Opti on("G10195").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.
Mar 26 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.