I would like to get some text from a web page containing this. I want to have the piece of information with the href="#spec_Brand".
<td class="table_spec">
<dl>
<dt class="table_spec_title">
<a class="href_icon href_icon_help table_spec_titleimg" title="Which manufacturer is producing the product?" href="#spec_Brand">
<span>Brand</span>
</a>
<span class="table_spec_titletext">Brand</span>
</dt>
<dd class="table_spec_definition">
Producer of the product?
</dd>
</dl>
</td>
I'm trying to use:
Set TDelementsA = HTMLdoc.getElementsByTagName("TD")
While r < TDelementsA.Length
If TDelementsA.className = "table_spec" Then
Sheet4.Range("A1").Offset(r, c).Value = TDelement.innerText
End If
but it gives me: Brand Producer of the product?
In stead of
spec_Brand
Can someone help me?