PDA

View Full Version : Solved: need to do search on IE page from Word



eed
08-07-2009, 07:57 AM
Hello, all!

I am writing a VBA procedure in Word 2007. At one point, I extract a URL from the document's text.

If possible, I would like to do the following:

Open Internet Explorer.
Navigate to this URL.
Do a "Find" on the page for a specific string of text (results: '0').
Return a value of True or False, or some functional equivalent to indicate whether or not the string was found on the web page.
Can anyone advise me on how to open IE and perform the "Find", via my procedure in Word?

If details help: I am running Word 2007 (Office 12); Windows XP; and Internet Explorer 7 for Windows XP.

Thank you SO much in advance for any help!! :content:

~ eed

eed
08-10-2009, 03:27 PM
Oh! I finally stumbled on this, which I was able to adapt to achieve just what I was looking for: http://www.vbaexpress.com/kb/getarticle.php?kb_id=386

Thanks to brettdj for contributing this code!!

~eed