LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How to control radio buttons on a web page?

I'm trying to automate getting some building permit info from a website
(http://censtats.census.gov/bldg/bldgprmt.shtml). I've got the state
selection and the submit button working ok, but at the top is a radio
button selector for Place or County, and I can't figure out how to
select County. Here is what I have so far, with some of the things
I've tried:

Sub county_permit_test()

Const URL As String = _
"http://censtats.census.gov/bldg/bldgprmt.shtml"
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")

With ie
.Visible = True
.Navigate URL
Do Until ie.ReadyState = READYSTATE_COMPLETE And Not
ie.Busy: Loop
With .Document.all
'.ret_opt.value("county").checked
'.Item("radio").Value = "county"
'.Item("ret_opt").Value("county") = Checked
.state.Value = "25Massachusetts"
End With
.Document.forms(0).submit
End With
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of Radio Buttons DR Excel Discussion (Misc queries) 4 August 19th 08 07:51 PM
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Radio Buttons sungen99[_70_] Excel Programming 8 February 17th 06 05:15 PM
VBA: Disable Frame and Radio Buttons based on Another Radio Button Being True Mcasteel Excel Worksheet Functions 2 October 29th 04 07:06 PM
Control Radio Buttons to VBA JasonSelf[_10_] Excel Programming 0 May 13th 04 03:28 PM


All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"