SharedWorkspace.Name property (Office)
Gets or sets the display name of the shared workspace site. Read/write.
Beginning with Microsoft Office 2010, this object or member has been deprecated and should not be used.
expression A variable that represents a SharedWorkspace object.
The following example displays the properties of the shared workspace to which the active document is connected.
Dim swsWorkspace As Office.SharedWorkspace Dim strSWSInfo As String Set swsWorkspace = ActiveWorkbook.SharedWorkspace strSWSInfo = swsWorkspace.Name & vbCrLf & _ " - URL: " & swsWorkspace.URL & vbCrLf & _ "The shared workspace contains " & vbCrLf & _ " - Files: " & swsWorkspace.Files.Count & vbCrLf & _ " - Folders: " & swsWorkspace.Folders.Count & vbCrLf & _ " - Links: " & swsWorkspace.Links.Count & vbCrLf & _ " - Members: " & swsWorkspace.Members.Count & vbCrLf & _ " - Tasks: " & swsWorkspace.Tasks.Count & vbCrLf MsgBox strSWSInfo, vbInformation + vbOKOnly, _ "Shared Workspace Information" Set swsWorkspace = Nothing
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.