VBA code to click on radio button in internet explorer

besteve33

New Member
Joined
May 13, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am using a VBA code to fill out a form to create a work order. When I put the part number in, you have to select the specific part from a pop-up and this has radio buttons. I have tried everything I've found on the internet but nothing has worked.

my code:
Set pNum1 = IE.Document.getElementsByName("MaterialsAdvTblRN:MatItem:0")(0)
pNum1.Focus
pNum1.Value = tb3wo1
pNum1.FireEvent "onchange"

Application.Wait (Now + TimeValue("00:00:03"))
Set ieRadio = IE.Document.all
ieRadio.Item("N1:selected")(0).Click


Want to click on the select button for the first one.
1652466269472.png


This is the html.
1652466324167.png


Any help would be greatly appreciated.
 

Attachments

  • 1652466240001.png
    1652466240001.png
    243.3 KB · Views: 4

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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