VB 点击herf
发布网友
发布时间:2024-10-01 10:08
我来回答
共1个回答
热心网友
时间:2024-10-13 02:49
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim Vdoc,i, S As String
On Error Resume Next
For i = 0 To WebBrowser1.Document.All.length - 1
Set Vdoc = WebBrowser1.Document.All(i)
If UCase(Vdoc.tagname) = "A" Then
S = Trim(Vdoc.innertext)
If s="建造" Then
Vdoc.click
End If
End If
DoEvents
Next
End Sub
热心网友
时间:2024-10-13 02:48
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim Vdoc,i, S As String
On Error Resume Next
For i = 0 To WebBrowser1.Document.All.length - 1
Set Vdoc = WebBrowser1.Document.All(i)
If UCase(Vdoc.tagname) = "A" Then
S = Trim(Vdoc.innertext)
If s="建造" Then
Vdoc.click
End If
End If
DoEvents
Next
End Sub