SharedWorkspaceFolder Object

SharedWorkspace
SharedWorkspaceFolders
SharedWorkspaceFolder

The SharedWorkspaceFolder object represents a folder in a shared document workspace. Member of the SharedWorkspaceFolders collection.

Using the SharedWorkspaceFolder Object

Use the SharedWorkspaceFolder object to manage subfolders within the main document library folder of a shared workspace.

The Count property of the SharedWorkspaceFolders collection does not include the workspace's main folder and returns 0 (zero) if no subfolders have been created.

The SharedWorkspaceFolder object does not expose the CreatedBy, CreatedDate, ModifiedBy, and ModifiedDate properties available on the SharedWorkspaceFile, SharedWorkspaceLink, and SharedWorkspaceTask objects.

Use the Item(Index) property of the SharedWorkspaceFolders collection to return a specific SharedWorkspaceFolder object.

Use the FolderName property to return the name of the shared workspace folder. The following example returns the name of the first subfolder in the SharedWorkspaceFolders collection in the format parentfoldername/foldername.

    Dim swsFolder As SharedWorkspaceFolder
    Set swsFolder = ActiveWorkbook.SharedWorkspace.Folders(1)
    MsgBox swsFolder.FolderName, vbInformation + vbOKOnly, "Folder Name"
    Set swsFolder = Nothing

Properties | Application Property | Creator Property | FolderName Property | Parent Property

Methods | Delete Method

Parent Objects | SharedWorkspace

Child Objects