I am using the webbrowser control to search pages. I need for my code to search a site for a Mailing Address and bring it back into a list box. Any ideas on how I can do this?
Determine if the field has a NAME or ID attached.
Fim objElement as object
Set objElement = webb.Document.getelementbyName("mail"
if not objElement is nothing then strData = objElement.Value
'Get all HTML and search
strHTML = Webb.DocumetDocumentElement.OuterHTML
If it does not have a NAME or ID then you'll have to locate it as .INNEERTEXT of a <P> tag or use Instr on the HTML if you can know some invariant words/phrases around the mailing address.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.