download from Web password protected

beedistinct

Board Regular
Joined
Jun 24, 2011
Messages
62
Need to download and refresh data manually once a week. Created a Web query but since the website requires a login, I have to create the query all over again next time I wish to refresh the data. Even when the query is saved. Is there a way to use vba to either automate the refresh or at least ask the login credentials without navigating to the Web table again?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
My experience with this is not consistent. Some websites have only looked for the IP address (I guess) of the user. So if I log in using Internet Explorer and then I open Excel and run the webquery using vba, then no problems. At other times, I have to actually open Excel manually login in using the web query and then run the webquery that was saved in vba. I don't know the mechanisms behind this but find it annoying. A better option might be to use webscaping via Internet Explorer but it gets into even murkier waters and I don't know how much you know about vba and/or html coding practices.

AMAS
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,280
Members
449,149
Latest member
mwdbActuary

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