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
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,116
Office Version
2013
Platform
Windows
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 !
 

cdh44

New Member
Joined
Feb 7, 2019
Messages
3
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..
 

p7LCO46

New Member
Joined
Dec 11, 2019
Messages
1
Office Version
2016
Platform
Windows
Did you figure out the CAC authentication issue?
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,543
Messages
5,511,947
Members
408,869
Latest member
MM005

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top