QueryTables are great for retrieving tabular data from the Web. Unless the data is password protected, that is.
Mores specifically, I have the following problem: I regularly consult a site for which you have to register to get access to the data. You know the procedure: In exchange for some personal information you are allowed to login and given a password, you may access some data. No problem so far if you access the web site through your standard or favorite browser.
However, I wanted to import programatically (VBA) some tabular data from such a site in an Excel worksheet. QueryTable.Refresh seemed to be the appropriate method to perform the task, but I couldn’t find a way to enter the appropriate Login/Password pair! Naturally, the query failed.
Anybody ran across the same problem??
PS: Before running the query, you have to create a query with the QueryTables.Add method. The latter uses a Connection parameter. (Connection:=”URL;http://www.etc…) Is there something I could specify in that parameter??? (I couldn’t find anything, but then I may not have searched hard enough)