hello,
I have a phrase in Text1 and an url in Text2.
my question is, how do I search for a phrase in a web page to
see if it's in it or not using vb?
thanks
:wave:
Printable View
hello,
I have a phrase in Text1 and an url in Text2.
my question is, how do I search for a phrase in a web page to
see if it's in it or not using vb?
thanks
:wave:
im assuming you are using the webbrowser control...
VB Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If (pDisp Is WebBrowser1.Application) Then Doc = WebBrowser1.Document.documentelement.innertext If InStr(Doc, Text2.Text) Then MsgBox "its there!" End If End If End Sub
what type of variable is Doc?
sorry..
Dim Doc as String
I have a list of pages to search. if i open each one and search
in them for a phrace it will take me a long time until I'm done...
is there a fatest way to do that?
not really...
you need to either download them...or "browse" to each one...
ok, thanks [LGS]Static.
but there is a problem with the above code...
if I enter the phrase "<html>" it will also find it...
what I want to search is the web page...
any other suggestions?
:wave: