PDA

View Full Version : How can VBA recognize the contents of an HTML <a href> tag?



nir.ben
06-12-2011, 03:20 AM
Hello,
I'm trying to create an automated VBA script which inspects a specific href tag in the HTML.

The pages I'm testing contain the following relevant HTML code:



<div id="SomeID" class="SomeClass">
SomeText
<br>
<a href="URL">HyperLink</a>
</div>


My question:
What is the correct VBA code to recognize and extract the URL from the HTML?
Thank you.

nir.ben
06-14-2011, 12:35 AM
Hi

Can anyone please take a look at the above?

Thank you