API Documentation > CorelDRAW > 2025-v26 > Workspaces > IVGWorkspaces
Workspaces.Count property
Gets the number of items in the collection of workspaces
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the number of workspaces in the Workspaces collection.
Examples:
The following VBA example displays a message box with the number of workspaces in CorelDRAW.
Sub WorkspacesCount()
MsgBox "There are " & Workspaces.Count & " workspaces in the collection." 
End Sub