Previous Document Next Document

Object Model Reference : Classes : A : Application : Properties : Application.Workspaces


Application.Workspaces

Property Workspaces As Workspaces

Description

Member of Application

The Workspaces property returns the collection of all workspaces available in the application.

The Workspaces property returns a read-only value.

VBA example

The following VBA example displays the available workspaces in a message box and adds an asterisk next to the name of the active workspace.

Sub WorkspaceCollection()
 Dim s As String
 Dim wks As Workspace
 s = "Available Workspaces: "
 For Each wks In Workspaces
  s = s & wks.Name
  If wks.Active Then s = s & " *"
 Next wks
 MsgBox s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.