+ Reply to Thread
Results 1 to 5 of 5

Querytable to current browser session

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    25

    Querytable to current browser session

    Hello there!

    I have used a very simple script for reatrieving data from a table:

    Please Login or Register  to view this content.
    The script worked alright before but since the owner of the webpage which the querytable refers to made some changes it is not working anymore. The problem is that you need to be logged in to reach the URL. I think the problem is that the querytable opens a new session(?) of my browser and therefore is not aware of that I am logged in. Is there a way to make the querytable refer to the current browser session?

    Or is there some kind of workaround? Appreciate all help!

    //Olle

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Querytable to current browser session

    Yes, the problem is that the query table is entirely separate from your web browser (Internet Explorer to be specific because web queries seem to use IE as the underlying browser for retrieving data) and any IE login session. AFAIK there is no way to make the QueryTable refer to the IE session.

    Instead of a web query you'll need to use IE automation to log in to the web site and HTML parsing/manipulation to retrieve the data.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Querytable to current browser session

    Thanks for the fast response!

    I was afraid of that, the strange thing is that it worked before! I have also noticed that it is important to use IE when working with querytables.

    Do you have any good links for IE automationm logging in, and retrieving data?

  4. #4
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Querytable to current browser session

    Sorry for the delay, but I tried posting 4 URLs on IE automation 2 days ago, but since then the forum has been unavailable to me. (I'm using a proxy server to post this.)

    Here's 1 link which hopefully won't cause the same problem:

    http://www.tushar-mehta.com/publish_...ices/index.htm

    Also search this forum for "InternetExplorer" for many examples.

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Querytable to current browser session

    Thanks for your help!

    I have managed to do the IE-automation on my own. The only problem now is that my boss is a mac-user and does no have IE...

    But I do not think it is possible to convert the script to use Safari instead, at least not in the same simple manner?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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