ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA, Webbrowser and Radio Buttons (https://www.excelbanter.com/excel-programming/399583-vba-webbrowser-radio-buttons.html)

[email protected]

VBA, Webbrowser and Radio Buttons
 
Im stumped with the following issue

I created a VBA script to step through the process of sending user
information to create an account
Everything used to work until the site added the language option for
french / english.

When i look in the Locals window

english is located at
..document.all.item(201)

french is located at
..document.all.item(202)

the name of the radio is "lang"

When English is selected, the info in 201 shows stuff like
checked = true
status = true
and the info in 202 will be the opposite (obviously)

i initially tried to do .document.lang.checked = true
but "lang" referrs to both the french and english so the script fails.


what code can i use to select the language?

if you need more info, let me know

PS im trying to stay away from code such
as .document.item(202).checked = true because the data might not
always be item 202 in the future. id rather call it by name

thanks to all



All times are GMT +1. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com