Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

Using VBA can I retreive the content of a single Meta_Tag by Name?

$
0
0

Knowing the name of a Meta_tag, I want to retrieve the contents of that specific tag.

I have tried the following:
Set Answers = ie.document.getElementsByTagName("knowntag")
This gives me an object to work with, but I have not been able to extract the contents.

I have tried limiting it to the first item:
Set Answers = ie.document.getElementsByTagName("knowntag")(0)
but that returns an empty set.

I have tried to directly access the contents:
Set Answers = ie.document.getElementsByTagName("knowntag").content
but that returns the error "object method not supported"

Similarly trying to do it indirectly

`Answer = Answers(0).content'

just returns an error

I know that I could simply loop through all tags till I find the right one, but that seems very slow and cumbersome.


Viewing all articles
Browse latest Browse all 88054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>