How are Web Query Login Redirections handled?

GBagley

Board Regular
Joined
Feb 8, 2011
Messages
84
I have a web query for a page (company internal) that requires you to enter login information in a web based form. I'm curious how excel handle this in web queries?

When I first set up the web query and put in the final web page address, it redirects to the login page where I can log in with my details and then the page redirects to the one that I need, where I can then select the tables I want and hit 'import'. Then once that query is set up, refreshes seem to work fine for a while but eventually (after closing, re-opening the worksheet?) the previously set up web query will again get redirected to the log in page and fail.

I know that when you're in a web browser, once you log in to a page like this, you will stay logged in for the remainder of the session unless you explicitly log out. Does excel do this in web queries somehow?

I'm writing a VBA program which currently grabs the users login details via a userform and then uses that to provide their login info automatically to the login page URL which redirects to the one with the data that needs to be refreshed. But it gets annoying having to enter your login for every refresh. I'm wondering if I could ask for their login just the first time after the workbook is opened, and then all subsequent refreshes with that URL will automatically see excel as 'logged-in'. As far as I can tell, excel doesn't use a typical web browser for these queries, so I'm not sure how it works exactly.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top