Solved

How to click radio button on webpage with this name and value

Posted on 2006-11-16
3
183 Views
Last Modified: 2010-04-30
<INPUT type=radio name=".dd_r" value=".jj_ym">


I've tried ie.document.body.all(".dd_r").checked = "1" and a bunch of variations of that but no go.
0
Comment
Question by:JohnDoeSr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 17962245
Are you using the IE Control?
0
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 250 total points
ID: 17962250
For IE Control you would do something like:

   Set objframes = WebBrowser1.Document.frames
   Set objdoc = objframes.Document
   Set htmlfield = objdoc.getelementsbyname(".dd_r")
   htmlfield(0).checked = "1"

Tell me if that works for you.


Brian
0
 

Author Comment

by:JohnDoeSr
ID: 17963479
Yep that did it. Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question