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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame Text Access Using Internet Explorer Object in Excel

Status
Not open for further replies.

almostfrugal

Programmer
Apr 30, 2003
8
0
0
US
I have programmed an Excel VBA macro which creates an Internet Explorer object (objInternetExplorer) and then navigates to a webpage which contains frames. I want to grab text from inside one of the frames. I've tried:

Code:
strText = objInternetExplorer.Document.Body.InnerText

and all I get is an empty string. Surely there is a way to navigate the DOM to get to the text I want, but I just can't find it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top