Previous Document Next Document

Object Model Reference : Classes : D : DataField : Properties : DataField.Name


DataField.Name

Property Name As String

Description

Member of DataField

The Name property returns the name of the data field as it appears in the Object Data Manager docker.

VBA example

The following VBA example shows the list of all data fields defined for the active document along with their format strings.

Sub Test()
 Dim s As String
 Dim df As DataField
 s = "Data Fields available:" & vbCr
 For Each df In ActiveDocument.DataFields
  s = s & vbCr & df.Name & " : " & df.Format
 Next df
 MsgBox s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.