Private Sub Command1_Click()Dim Range
'check to see if the document has a BODY
If WebBrowser1.Document.body.tagName = "BODY" Then
Set Range = WebBrowser1.Document.body.createTextRange
Range.findText "Great"
Range.Select
Range.execCommand "Copy"
Text1.Text = Clipboard.GetText
End IfEnd SubPrivate Sub Form_Load()
On Error Resume Next 'Don't stop execution, continue on next line
WebBrowser1.Navigate "http://www.csdn.net"
If Err.Number <> 0 Then MsgBox "Error :" & Err.Description 'Display error message
End Sub
'check to see if the document has a BODY
If WebBrowser1.Document.body.tagName = "BODY" Then
Set Range = WebBrowser1.Document.body.createTextRange
Range.findText "Great"
Range.Select
Range.execCommand "Copy"
Text1.Text = Clipboard.GetText
End IfEnd SubPrivate Sub Form_Load()
On Error Resume Next 'Don't stop execution, continue on next line
WebBrowser1.Navigate "http://www.csdn.net"
If Err.Number <> 0 Then MsgBox "Error :" & Err.Description 'Display error message
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货