Main Topics
Browse All TopicsHey the last code you gave me was excellent I adapted it by just changing the .type and .name for each thing then set its value. But I cant seem to get it to work for a listbox. Any ideas on how to do it? Thanks
(Last Code)
Dim btnRadio As HTMLInputButtonElement
For Each btnRadio In wb.Document.All.tags("INPU
If UCase$(btnRadio.Type) = "RADIO" And btnRadio.Name = "form_agecheck" And btnRadio.Value = CStr("before") Then
'value can be "before" or "after"
btnRadio.Checked = True
Exit For
End If
Next
DoEvents
HTML for the listbox
<select name='country'><option value=''>Country
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
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.
30-day free trial. Register in 60 seconds.
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.
For the Country Drop Down:
WebBrowser1.Document.All("
Your Values are:
<select name='country'>
<option value=''>Country</option>
<option value='US'>United States</option>
<option value='GB'>United Kingdom</option>
<option value='CA'>Canada</option>
<option value='JP'>Japan</option>
<option value='AF'>Afghanistan</op
<option value='AL'>Albania</option
<option value='DZ'>Algeria</option
<option value='AS'>American Samoa</opt...
Use the value="XX" to access the list items
For the Month Combo Box,
WebBrowser1.Document.All("
Your values are:
<select name='month'><option value=''>Month</option>
<option value='01'>January</option
<option value='02'>February</optio
<option value='03'>March</option>
<option value='04'>April</option>
...And so On
=-=-=-=-=-=-=-=-=-=-=-=-=-
For The Day Drop Down:
WebBrowser1.Document.All("
<select name='day'><option value=''>Day</option>
<option value='01'>01</option>
<option value='02'>02</option>
....And so on....
=-=-=-=-=-=-=-=-=-=-=-=-=-
For The Year:
WebBrowser1.Document.All("
<select name='year'>
<option value=''>Year</option>
<option value='1991'>1991</option>
<option value='1990'>1990</option>
<option value='1989'>1989</option>
...And so on..
Business Accounts
Answer for Membership
by: bingiePosted on 2004-05-21 at 06:35:19ID: 11126502
Can you give me the URL?