Syntax

expression.Name

expression A variable that represents a SharedWorkspace object.

Return Value
String

Example
The following example displays the properties of the shared workspace to which the active document is connected.

Visual Basic for Applications
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

See also: