Remarks

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() property of the SharedWorkspaceFolderscollection to return a specific SharedWorkspaceFolderobject.

Example

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

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

See also:

index