2Grey
asked on
Web Browser control - Find dialog
Hello, I am trying to create a find dialog to look through a web browser control. I am not sure of how to do this as there is no text property for a web browser control that can be read in and searched through. I am also curious on how a find dialog can highlight the found word ans there are no sel properties for the text that is being displayed in the browser control.
ASKER
this search method does work but not for finding multiple entries. Any additional information on this would be appreciated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, it works great.
Dim oRange As Object
Dim sSearch As String
Private Sub cmdFind_Click()
Set oRange = wbbTest.Document.Body.crea
sSearch = InputBox("Enter search string:")
If oRange.findText(sSearch) Then
oRange.Select
Else
MsgBox "Search string not found."
End If
End Sub
SLE