Object Model Reference : Classes : D : DataField : Properties : DataField.Format |
Property Format As String
Member of DataField
The Format property returns or specifies the data format for the given data field.
The following VBA example adds a new data field, CreationDate, and sets the date format for it.
Sub Test() |
Dim df As DataField |
Set df = ActiveDocument.DataFields.Add("CreationDate", DocDefault:=True) |
df.Format = "dd/MM/yy" |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.