Hi all,
Another day, another exciting VBA project to solve ;-)
In essence, I'm trying to scrape the HTML source code from multiple (intranet) sites. I found the below VBA script that helps with two things:
a) it can scrape the HTML source code from one target intranet site
b) it can extract all the links on that target site
What I would like to get to is:
# ie.Navigate (see script below) to point to one specific URL that sits in a dropdown in Lookups!$C$3
# If the dropdown states "All" (and not a specific URL) I would want it to run through all URLs in a pre-defined list in Lookups!$H$6:$H$100 one by one
# Results should be written to:
## Lookups!$B$299 downwards: Link name (e.g. in a href="https://www.w3schools.com">Visit W3Schools</a this would be "Visit W3Schools")
## Lookups!$C$299 downwards: URL (e.g. in a href="https://www.w3schools.com">Visit W3Schools</a this would be "https://www.w3schools.com")
## Lookups!$D$299 downwards: the HTML source code of that page (e.g. source code of "https://www.w3schools.com")
## Lookups!$E$299 downwards: the URL that I am scraping (so what ie.Navigate points to; either the URL in Lookups!$C$3 or one of the URLs in list Lookups!$H$6:$H$100)
This is the source code I am trying to adapt - sadly not getting any further with this :-( Only managed to scrape the HTML source code and the URLs on the site with this...
Would love to share an example file or the actual URL, but it's internal (URL also isn't accessible outside my network, but above script worked so far).![]()
Please Login or Register to view this content.
Hope anyone can help or point me in the right direction?
Thank you!
Bookmarks