API Documentation > CorelDRAW > 2025-v26 > DataField > IVGDataField
DataField.FieldWidth property
Gets or sets the Field Width
Syntax:
Property Get FieldWidth() As Long
Property Let FieldWidth(ByVal Value As Long)
Remarks:
The FieldWidth property returns or specifies the width of a data field as seen in the Spreadsheet editor of the Object Data Manager docker.
Examples:
The following VBA example calculates and displays the total width of all data fields.
Sub Test()
Dim df As DataField
Dim w As Long
w = 0
For Each df In ActiveDocument.DataFields
  w = w + df.FieldWidth
Next df
MsgBox "Total width of all " & ActiveDocument.DataFields.Count & " data fields is " & w & " units" 
End Sub