+ Reply to Thread
Results 1 to 2 of 2

VBA to Edit Query and Login

  1. #1
    Registered User
    Join Date
    07-07-2011
    Location
    Rhyl, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    VBA to Edit Query and Login

    Hello all,

    Thank you in advance for your help. I've been struggling with this one!

    I have a series of querytables in Excel 2010. I used the 'Get Data from Web' functionality to link to a series of web pages which contain the data I need. Each day I boot up Excel and log in again. Once I've logged in, Excel remembers for the day (by refreshing the tables every 5 minutes). However, I need to log in to those web pages first. The login page does not 'remember' who I am, and I cannot find any part of Excel which will login for me. So, I type in a username, then password, then click okay. If this was in a web scraper I think I could do it, but it is in Excel's "Edit Query" web page, which I can't seem to access programmatically.

    I have looked at the properties for querytables and can't find anything relevant :-(
    I have looked at VBA - using the Send Keys method to simulate my login. When I select a querytable using vba, the 'Data' tab at the top of Excel is greyed out. The 'alt' combinations do not work.
    I have tried using VBA to left click the button I want, but again this does not work for me.

    I would welcome any suggestions you have on how to take this forward! Thank you again.

  2. #2
    Registered User
    Join Date
    07-07-2011
    Location
    Rhyl, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: VBA to Edit Query and Login

    So I solved it.

    It's amazing what a few hours sleep can do.

    Okay, so this page told me everything I needed to know:

    http://www.vertex42.com/News/excel-web-query.html

    In a nutshell, I needed to create a connection file which would contain the parameters I would use to access the system.

+ 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. Auto Login to Edit Web Query dialog
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2021, 02:34 PM
  2. Login via web query using VBA/Macro
    By zepp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2014, 01:09 AM
  3. Search and Edit Script Needed
    By Rey Ocampo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2012, 04:22 PM
  4. Users login to edit?
    By illusive817 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-22-2008, 07:09 AM
  5. Web query with login
    By ken54321 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2008, 03:42 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