Previous Document Next Document

Object Model Reference : Classes : V : Views : Properties : Views.Count


Views.Count

Property Count As Long

Description

Member of Views

The Count property returns the number of views in a collection.

The Count property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.