Previous Document Next Document

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


DataField.Format

Property Format As String

Description

Member of DataField

The Format property returns or specifies the data format for the given data field.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.