你如何引用VBA中的HTMLSelect对象?

我正在尝试引用VBA中的HTMLSelect对象。 假设我在html页面上有一个表单和一个名为LB的select控件。 我不明白为什么我使用下面的代码得到一个错误信息。

Dim ieApp As InternetExplorer Dim ieSelect As HTMLSelect Dim iePage as HTMLDocument Set ieApp = New InternetExplorer ieApp.Visible = True ieApp.navigate "C:\formA.html" Do Until ieApp.readyState = READYSTATE_COMPLETE Loop Application.Wait (Now() + TimeValue("00:00:05")) Set iePage = ieApp.document Set ieSelect = iePage.forms(0).Item("LB") 

嗯,不知道,但有你的runat =“服务器”在formA.html?