?
Solved

how to read html elements in vb?

Posted on 2003-03-19
3
Medium Priority
?
223 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
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

578 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