Hi,
I'm an Excel VBA novice, and I have a spreadsheet that mines data from a website that requires a login.
After a lot of experimenting, I discovered that I am only able to get to the source of the data I need by going to the end URL through a series of steps, literally going to each page one by one due to cookies and session variables.
I managed to get this working perfectly with the InternetExplorer object (making it hidden, grabbing the source, and navigating several times), but now I need data that is formatted heavily in tables and it would take forever for me to parse all of that the way I'm currently doing, and so would like to use QueryTables to grab the data for me.
However, I am stuck as to how I can (in fact, is it even possible?) use QueryTables to return the data after going through a series of URLs.
I'm currently using:
The code above is just the basic code I've been using to establish a basic connection. I do not know how to make consecutive connections under the same QueryTable/connection.
TL;DR: I want QueryTables to return the end result after going through URL1 -> URL2 -> URL3 in the same connection. If I try to go directly to URL3, the website will error out.
Thank you!
Bookmarks