Results 1 to 3 of 3

Thread: How to Download File from Password Protected SharePoint using VBA (CAC Login)?
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Feb 2019
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

    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

  2. #2
    Board Regular Michael M's Avatar
    Join Date
    Oct 2005
    Location
    South Western NSW
    Posts
    17,812
    Post Thanks / Like
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)

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

    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 !
    Regards
    Michael M
    ---------------------------------------
    The more I learn, the less I seem to know.....A Please and Thank You cost nothing !
    It's easier to debug if we can see the whole macro !
    Home 2007 & 2013

    - Posting guidelines, forum rules and terms of use

    - To download Mr Excel HTML Maker

    - Try searching for your answer first, see how

    - Read the FAQs

    - List of BB codes


    [CODE]Place Your Code Here[/CODE]

  3. #3
    New Member
    Join Date
    Feb 2019
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

    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..

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •