How to Download File from Password Protected SharePoint using VBA (CAC Login)?

cdh44

New Member
Joined
Feb 7, 2019
Messages
3
Experts,


I'm in the process of writing a couple of VBA scripts that will enable the user to download an Excel file from our password protected SharePoint site and import the data into the active workbook. I work for a government office, and our SharePoint site required a CAC login (CAC card must be inserted into computer). Upon navigating to the site, the Windows Security box pops up and requires a pin #. This workbook will be distributed to a couple of my co-workers.


I'd really prefer to not use SendKeys for obvious reasons. Is there any other way to do this?


I've accomplished this a number of times on non-government SharePoints, but am having some issues due to the CAC login. Any ideas?


Best,
Chris
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I can't see how you would be allowed to access a protected site via Excel !!
The password requirements would still be required at the sharepoint entry !
 
Upvote 0
Hey Michael,

Sorry for not being clear. We all have individual PINs to access said SharePoint. The objective would be for the script to authenticate SharePoint access using our individual PINs (depending on who the user is at the moment), and then import the data. I imagine our PINs could be fed into a userform for the user to type in..
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,058
Members
448,940
Latest member
mdusw

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