有点问题:
返回错误:类型不匹配
源代码是这样的:
Dim Doc As Object
Dim tag, Opt As Object
Dim i As Integer
Set Doc = Webbrowser.Document
For i = 0 To Doc.All.length - 1
If UCase(Doc.All(i).tagName) = "SELECT" Then
Set tag = Doc.All(i)
Select Case tag.Name
Case "sex"
MsgBox UBound(tag.Item) ''''这里
MsgBox tag.Item(1).innerHTML
End Select
End If
Next i
返回错误:类型不匹配
源代码是这样的:
Dim Doc As Object
Dim tag, Opt As Object
Dim i As Integer
Set Doc = Webbrowser.Document
For i = 0 To Doc.All.length - 1
If UCase(Doc.All(i).tagName) = "SELECT" Then
Set tag = Doc.All(i)
Select Case tag.Name
Case "sex"
MsgBox UBound(tag.Item) ''''这里
MsgBox tag.Item(1).innerHTML
End Select
End If
Next i

