Hello everyone.

I have made a program that interacts with a page. I have no problem with dealing with check boxes and hyperlinks but I can't deal with a combo box. The elements on the page are

<div class="limit">Display #<select id="limit" name="limit" class="inputbox" size="1" onchange="Joomla.submitform();">
	<option value="5">5</option>
	<option value="10">10</option>
	<option value="15">15</option>
	<option value="20" selected="selected">20</option>
	<option value="25">25</option>
	<option value="30">30</option>
	<option value="50">50</option>
	<option value="100">100</option>
	<option value="0">All</option>
</select>
</div>
It is a combo box to change the number of the rows of a table to be displayed. Any ideas about how this can be handled?

I have tried
    Set All_display_opt = IE.document.getElementsByTagName("option")
    For Each opt In All_display_opt
        If opt.Value = "0" Then
           opt.Click
        Exit For
        End If
    Next
as well as
    Set All_display_opt = IE.document.getElementsByTagName("option")
    For Each opt In All_display_opt
        If opt.Value = "0" Then
           opt.setAttribute("selected", "selected")
        Exit For
        End If
    Next
The first is just just ignored and the second gives me an error of invalid property-method.

Thank you in advance.