Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching Webpage for specific text/phrase

Status
Not open for further replies.

blckngldhwk

Technical User
Feb 14, 2008
46
0
0
US
I have a script set up to do a look up using a webpage search form and now I want to be able to have the macro search the page for the phrase 'No records match the criteria' but am unsure how to approach searching for text. Any ideas? Thanks!
 
See this thread for some ideas :

You could try to find the ID of the web page field storing your phrase 'No records...'. Knowing the id you could than verify the content using InnerText property.

Alternatively you could download the whole page into excel (either using web query, or other download method) and then perform a simple text search within the workbook.

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top