Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.SharedWorkspace Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns a Microsoft Office SharedWorkspace object that provides access to the Office Document Workspace object model. Read-only.

Syntax

expression . SharedWorkspace

expression A variable that represents a Document object.

Return Value

Object

Remarks

The Office Document Workspace object model provides a way to put documents into a shared workspace and manipulate Microsoft SharePoint data such as people, tasks, links, and related files.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the SharedWorkspace property to get a SharedWorkspace object and create a new shared document workspace that has the same name as the default document, at the default location.

Public Sub SharedWorkspace_Example 

 Dim vsoSharedWorkspace As SharedWorkspace 
 Set vsoSharedWorkspace = ActiveDocument.SharedWorkspace 
 vsoSharedWorkspace.CreateNew ("") 

End Sub
© 2018 Microsoft