vb中如何让一段代码每个5分钟自动再执行一次
如何让以下代码每隔5分钟执行一次WebBrowser1.Navigate "http://28.33.39.202/gis/map/default.asp"
Private Sub WebBrowser3_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If Not (pDisp Is WebBrowser3.Object) Then Exit Sub
Text3.Text = WebBrowser3.Document.body.innerText
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Text2 = WebBrowser1.LocationURL ' 显示当前网址
' 判断当前网页是否全部调入完毕
If Not (pDisp Is WebBrowser1.Object) Then Exit Sub
Dim doc, objhtml
Set doc = WebBrowser1.Document
Set objhtml = doc.body.createTextRange()
If Not IsNull(objhtml) Then
s = objhtml.HTMLText