+ Reply to Thread
Results 1 to 3 of 3

QueryTables: Consecutive Navigiation Queries?

  1. #1
    Registered User
    Join Date
    04-15-2015
    Location
    Nanaimo, BC
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    8

    Question QueryTables: Consecutive Navigiation Queries?

    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:

    Please Login or Register  to view this content.
    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!

  2. #2
    Registered User
    Join Date
    04-15-2015
    Location
    Nanaimo, BC
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    8

    Re: QueryTables: Consecutive Navigiation Queries?

    Ouch. Is this a dead forum...?

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,913

    Re: QueryTables: Consecutive Navigiation Queries?

    crossposted: http://www.ozgrid.com/forum/showthre...737#post743737

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 01-21-2013, 12:47 PM
  2. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  3. Replies: 6
    Last Post: 03-23-2012, 06:03 PM
  4. QueryTables command for all queries in an excel sheet
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2008, 06:37 AM
  5. QueryTables Add
    By Marta in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2005, 02:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1