Object Model Reference : Classes : D : DataItems : Properties : DataItems.Count |
Property Count As Long
Member of DataItems
The Count property returns the number of fields available. Empty, non-document-default fields are not listed in this collection.
• |
See DataFields for the full list of data fields available in the document.
|
The Count property returns a read-only value.
The following VBA example counts the number of data fields in the active shape.
Sub Test() |
Dim n As Long |
CountFields = ActiveSelection.Shapes(1).ObjectData.Count |
MsgBox CountFields |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.