?
Solved

how to read html elements in vb?

Posted on 2003-03-19
3
Medium Priority
?
222 Views
Last Modified: 2010-05-03
Html documents stored in one folder. i have to read the elements of html in vb and then stored these details in database.
0
Comment
Question by:ShriAnandhi
[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
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
rdrunner earned 225 total points
ID: 8165656
You could open them with an Explorer object and then access the document property of it. This will allow you to access all tags in the DOM in a loop for example.

0
 

Author Comment

by:ShriAnandhi
ID: 8165734
Thankz.shall u Explain with examples.?
0
 
LVL 11

Expert Comment

by:rdrunner
ID: 8166143
Next time dont grade with B until last part was answered ;)

'code  snippet ...

Dim IE As InternetExplorer
Dim tag As Variant
Set IE = New InternetExplorer
IE.Navigate2 "www.google.de"
For Each tag In IE.Document.All
    Debug.Print tag.tagName
    Debug.Print tag.innertext
Next
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

764 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