Solved

How to get the html source from an explorer window knowing only the window handle via vb 6?

Posted on 2004-09-13
6
156 Views
Last Modified: 2010-05-02
The exact question I needed an answer for was already in the forum.

How to get the html source from an explorer window knowing only the window handle - programaticlly??

However, the link to the answer does not work.  Could you post the answer back in the forum?

thanks,
bch
0
Comment
Question by:bch3000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 500 total points
ID: 12044971
Dim shWindows           As New SHDocVw.ShellWindows
Dim tmpExplorer               As SHDocVw.InternetExplorer
 
For Each tmpExplorer In shWindows
   if tmpExplorer.HWND = <handle> then
     msgbox tmpExplorer.document.body.innerHTML
     exit for
   end if
Next

0
 
LVL 18

Expert Comment

by:bobbit31
ID: 12044982
you'll need to add "Microsoft Internet Controls" under project/references
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 12559759
gimme points
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question