Previous Document Next Document
DataField.Format

Property Format As String

Member of DataField

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

The following code 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 2007 Corel Corporation. All rights reserved.