Given an url, how can I get the title of the html page in VBA in Excel?
For example suppose I have three urls like :
Now I need to get the title of these html pages in another column. How do I do it?
Given an url, how can I get the title of the html page in VBA in Excel?
For example suppose I have three urls like :
Now I need to get the title of these html pages in another column. How do I do it?
I am not sure what you mean by title, but here is an idea:
Remou's answer was VERY helpful for me, but it caused a problem: It doesn't close the Internet Explorer process, so since I needed to run this dozens of times I ended up with too many IEs open, and my computer couldn't handle this.
So just add
and everything will be fine.
This is the code that works for me: