+ Reply to Thread
Results 1 to 2 of 2

Check and create folders on SharePoint via Excel VBA

  1. #1
    Registered User
    Join Date
    07-23-2022
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2013
    Posts
    1

    Check and create folders on SharePoint via Excel VBA

    Hi All,

    I need a stable and flexible solution for accessing SharePoint via Excel VBA. I want to open SharePoint files and check whether some folders exist on SharePoint and create them if they don't. So some really simple tasks, which are easy to be coded in VBA but they don't work if the VBA macro tries to realize them on files stored on SharePoint.
    What I have tried are the followings:
    - Login to SharePoint under Internet Explorer. This was only a temporary solution because IE is no longer supported and this is not even working any more (no wonder of course).
    - Change SharePoint URL to UNC with a function like in this stackoverflow thread: "Get the content of a sharepoint folder with Excel VBA". This was useful for opening SharePoint files under other browsers as well but it's not working any more either ("Path not found" error).
    - After having set the recommended settings from this Microsoft documentations: "Error when you try to access a network drive that's mapped to a web share: User has not been authenticated", I successfully mapped the SharePoint folders to a network drive and in this way I could check folder paths and create new ones. Unfortunately this solution was not stable either: when I tried to use it again after some months, it was no longer working ("User is not authorized" error). Moreover, my clients' group policy doesn't allow to change registry settings that are recommended so this solution wouldn't have been an universal one.

    So please help me how to open files and check folders on SharePoint via Excel VBA!

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Check and create folders on SharePoint via Excel VBA

    Do you have access to power automate? That will be the best method nowadays…

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Check Folders for New Files and create message
    By Chris1976 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-27-2020, 06:58 AM
  2. Create Year and Month Folders to Online SharePoint
    By E5254730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2020, 03:22 AM
  3. Create folders and sub folders from lists of data in excel
    By matthruba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2016, 11:28 AM
  4. [SOLVED] Check to see if folders exist and create if not
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2014, 05:30 AM
  5. Check out excel protected file from sharepoint
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-15-2014, 01:28 AM
  6. Replies: 0
    Last Post: 02-12-2014, 10:08 AM
  7. Save an Excel file to Sharepoint and Check in
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2013, 08:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1