Previous Document Next Document
DataFields.Count

Property Count As Long

Member of DataFields

The Count property returns the number of data-field objects available.

The Count property returns a read-only value.

The following code example shows the number of data fields available.

Sub Test() 
 Dim n As Long 
 n = ActiveDocument.DataFields.Count 
 MsgBox "There are " & n & " data fields defined." 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.