Export (0) Print
Expand All
Expand Minimize

Document.SharedWorkspace Property

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

Syntax

expression.SharedWorkspace

expression   A variable that represents a Document object.

Example

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

ADD
Show:
© 2015 Microsoft