1
我想引用VBA中的HTMLSelect对象。假设我在html页面上有一个表单和一个名为LB的选择控件。我无法弄清楚为什么我使用下面的代码得到错误信息。如何引用VBA中的HTMLSelect对象?
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")