Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SharedWorkspace Property
Collapse the table of content
Expand the table of content

Document.SharedWorkspace Property

Office 2007
Returns a SharedWorkspace object that represents the Document Workspace in which a specified document is located.



expression   A variable that represents a Document object.


The following example returns a reference to the Document Workspace in which the active document is stored. This example assumes that the active document belongs to a Document Workspace.

Visual Basic for Applications
Dim objWorkspace As SharedWorkspace

Set objWorkspace = ActiveDocument.SharedWorkspace

Community Additions

© 2015 Microsoft