Object Model Reference : Classes : D : DataField : Properties : DataField.FormatType |
Property FormatType As cdrDataFormatType
Member of DataField
The FormatType property returns the format type for a data field. The format type can be one of the following: General, Date/Time, Linear/Angular, or Numeric.
The FormatType property returns a read-only value.
The following VBA example changes the format of all numeric data fields.
Sub Test() |
Dim df As DataField |
For Each df In ActiveDocument.DataFields |
If df.FormatType = cdrFormatNumeric Then |
df.Format = "#,##0 K" |
End If |
Next df |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.