search for item on internet explorer page

  • Thread starter Thread starter Cheryl
  • Start date Start date
C

Cheryl

Does anyone know the best way, or where I can find the
best way, to search through an internet page? I have a
module set up that will open explorer and go to the
correct url page. Now I want it to look for a string on
the page and tell me if it can be found.
Thanks!
Cheryl
 
You should be able to access the Body property of the document and then get
it's innerText and do a search on that string value. I've never scripted IE
through VBA myself, but I know this is how the document object model is
structured for IE, so I am fairly confident that this will be accessible
through VBA. Please post back if it doesn't work, and perhaps include the
code that you have so far.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top