SharedWorkspace.Connected property (Office)
Gets a Boolean value that indicates whether or not the active document is currently saved in and connected to a shared workspace. Read-only.
Note
Beginning with Microsoft Office 2010, this object or member has been deprecated and should not be used.
Syntax
expression.Connected
expression A variable that represents a SharedWorkspace object.
Remarks
Use the Disconnect method of the SharedWorkspace object to disconnect the local copy of the active document from the shared workspace. Use the RemoveDocument method to remove the document from the shared workspace.
Example
The following example checks the Connected property to determine whether the active document is already saved in a shared workspace.
If ActiveWorkbook.SharedWorkspace.Connected Then
MsgBox "This document is already saved in a shared workspace."
End If
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for