title: Unable to select Radiobutton in website using VBA
body: <p>Here is the code I am using:</p>
  
  <pre><code>Sub Websitedata()
      Dim ie As Object
      Dim myURL As String
      myURL = "FIRST PAGE"
  
      Set ie = New InternetExplorerMedium
      ie.Visible = True
      ie.navigate myURL
  
      Do While ie.readyState &lt;&gt; 4 And ie.Busy
          DoEvents
      Loop
  
      'Selects a type from a dropdown bar
      ie.document.forms("actionForm").elements("dropdownbar").Value = "311"
      'Inputs data
      ie.document.forms("actionForm").elements("inputbox1").Value = ""
      'Inputs data
      ie.document.forms("actionForm").elements("inputbox2").Value = ""
      'Inputs data
      ie.document.forms("actionForm").elements("inputbox3").Value = ""
      'Inputs data
      ie.document.forms("actionForm").elements("inputbox4").Value = ""
      'Inputs data
      ie.document.forms("actionForm").elements("inputbox5").Value = ""
      'Pressed submit and goes to next page.
      ie.document.forms("actionForm").elements("_eventId_Search").Click
      'Needs to press a radiobutton.
      ie.document.getElementByName("declarationId").Click
  End Sub
  </code></pre>
  
  <p>I am having issue clicking the radio button. Tried checked, click, value everything.</p>
  
  <p>Here is the HTML of the page:</p>
  
  <pre><code>&lt;TABLE id=declarationList class="list sortable" cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;
  &lt;TR class=header&gt;
      &lt;TH style="TEXT-ALIGN: center" align=center&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;Type&lt;SPAN class=sortarrow sortdir="down"&gt;&amp;nbsp;&amp;nbsp;?&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;rts&lt;SPAN class=sortarrow&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;tyi&lt;SPAN class=sortarrow&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;trtjm&lt;SPAN class=sortarrow&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;erch&lt;SPAN class=sortarrow&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
      &lt;TH&gt;&lt;A onclick="ts_resortTable(this);return false;" class=sortheader href=""&gt;dft&lt;SPAN class=sortarrow&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TH&gt;
  &lt;/TR&gt;
  &lt;TR class=evenRow&gt;
      &lt;TD style="TEXT-ALIGN: center" align=center&gt;&lt;INPUT onclick="updateButtons('Import','GF','79295876',false,'null',false,true,true,false,false,false)" type=radio value=79295876 name=declarationId&gt; &lt;/TD&gt;
      &lt;TD&gt;IM A &lt;/TD&gt;
      &lt;TD&gt;4561548 &lt;/TD&gt;
      &lt;TD&gt;29/03/2018 &lt;/TD&gt;
      &lt;TD&gt;32856 &lt;/TD&gt;
      &lt;TD&gt;0313 &lt;/TD&gt;
      &lt;TD&gt;40 00 , 40 00 &lt;/TD&gt;
  &lt;/TR&gt;
  &lt;/TBODY&gt;&lt;/TABLE&gt;
  </code></pre>
  
  <p>I need it to select the radio button which appears in the next page. Do I have to change some kind of data in the top? Please let me know. I am confused. </p>
  
  <p>Update- Still no answer for this query. Please help </p>