在Internet Explorer中使用vba从combobox中select项目

以下值表示网站上的combobox/组合列表。 我正在尝试使用VBA从下拉菜单中select项目#3。 我已经尝试了几件事情,但是我没有select上述项目的运气。 我曾尝试寻找谷歌和堆栈上的解决scheme,但没有发现任何似乎工作。

<DIV id=ext-gen256 class="x-layer x-combo-list x-combo-list-small" style="FONT-SIZE: 10px; HEIGHT: 92px; WIDTH: 113px; POSITION: absolute; LEFT: 744px; Z-INDEX: 12007; TOP: 235px; VISIBILITY: visible"> <DIV id=ext-gen257 class=x-combo-list-inner style="HEIGHT: 90px; WIDTH: 111px"> <DIV class="x-combo-list-item" _nodup="30829" viewIndex="0">Select</DIV> <DIV class="x-combo-list-item" _nodup="30829" viewIndex="1">Item 1</DIV> <DIV class="x-combo-list-item" _nodup="30829" viewIndex="2">Item 2</DIV> <DIV class=""x-combo-list-item" _nodup="30829" viewIndex="3">Item 3</DIV> <DIV class="x-combo-list-item" _nodup="30829" viewIndex="4">Item 4</DIV></DIV></DIV> 

我已经使用了下面的代码的几个变种尝试和select有问题的项目(即项目#3),但不断得到一个运行时错误

 Dim inputE As MSHTML.HTMLHtmlElement Set inputE = IE.document.getElementsByClassName("x-combo-list-item") If inputE.innerText = "Item 3" Then inputE.Select End If 

这似乎并不奏效。 任何帮助是极大的赞赏。 谢谢!