Object Model Reference : Classes : V : Views : Properties : Views.Count |
Property Count As Long
Member of Views
The Count property returns the number of views in a collection.
The Count property returns a read-only value.
The following VBA example displays a message box if there are no views in the active document.
Sub Test() |
If ActiveDocument.Views.Count > 1 Then |
MsgBox "There are no views in the current document", vbCritical |
End If |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.