Automatically create folder on SharePoint

K

K

In my Access program, I am trying to create a folder if one does not exist on
a Sharepoint site, but I am receiving a permission denied error. I have the
appropriate persmissions to create a folder and I can create one manually
directly on the site. Does anyone know a better way? I am using the
following code:

Public Sub CreateWorkingFolder(ByVal sWorkingDir As String)

Dim fso As New FileSystemObject

If fso.FolderExists(sWorkingDir) = False Then
fso.CreateFolder Path:=sWorkingDir
End If

Exit_CreateWorkingFolder:
Exit Sub

TIA!
 
K

K

I was able to use this code afterall. I had my reference to the SharePoint
site wrong! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top