Logging into a secure intranet for web query

weirdaljr

New Member
Joined
Apr 3, 2011
Messages
2
I have been attempting off and on for a few months to get Excel to log onto a secure site on a corporate intranet for a automated data export. I am not a VBA expert by no means and could really use some assistance. I have been able to research scripts online and modify them to different degrees to try and attempt to accomplish this, but I haven't been able to get it fully working on any of my attempts so I am now trying again.

Basically what I am trying to do is have the excel pull data from multiple intranet sites (lets call that site X) into multiple worksheets with a web query or other function with similar capabilities. Site X is a secure site the redirects to a login.html (lets call this site L) for authentication if the user has not recently authenticated. Site L is the same for all Site X due to the intranet using a single sign on web authentication portal (Oracle Access Manager/Netpoint if that matters)

The excel user will have proper authentication information, so I know I can have excel prompt for the user's login and password information, but I have not been able to get excel to recognize when it has been redirected site L to perform the login and maintain the secure web session to access the other data sites for each worksheet. I am starting fresh at this point again, all help, suggestions, and code to preform this is greatly appreciated.

Below is the code I pulled from site L with the login variables I thought were important to complete this:

Code:
document.getElementById('pcuserid').value = document.loginform.userid.value;
document.getElementById('pcpassword').value = document.loginform.password.value;
document.loginform.submit();
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hello!! I am having this exact issue. I have two excel workbooks that I pull data from the company intranet but I can only be logged in to one workbook at a time. When I'm logged into one and then I log into the other, the first I was logged into will log me out and the query won't return any data. Were you able to get this issue resolved? If so, please let me know what you did.
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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