OptionButton ******* event in IE using VBA excel

D

Deleted member 415602

Guest
Hey guys,

I am able to click an optionButton in IE with vba code :
Set optionButtonBizRules = IEDoc.all
optionButtonBizRules.Item("radio_bizRules")(0).Checked = True


The only problem is that I physically need to click on the option button in the IE browser to be able
to have access on the next page. The code above only fills the option button hole.
I am wondering instead on running my code if I could have the *******() event and do the "Physical click" for me.

Here is the HTML code when I inspect the optionButton: <input type="radio" name="radio_bizRules" id="radio_bizRules" *******="validation_priorToRequest()" value="1">

I am kind of an "newbie" with this, if it is not clear please let me know.

Thank you for your kind help :)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I am not sure, but can you try;

Code:
.click

instead of;
Code:
.checked = true
 
Last edited:
Upvote 0
As the ******* is probably o_nclick (without the underscore) you need to call fireEvent (<=IE8) with the argument "o_nclick" (again, without the underscore!), or createEvent with the argument "click" and dispatchEvent (>=IE9) on the option button. There should be VBA examples in this forum.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top