TableFields.Add method (Project)

Adds a TableField object to a TableFields collection.

Syntax

expression.Add (Field, AlignData, Width, Title, AlignTitle, Before, AutoWrap)

expression A variable that represents a 'TableFields' object.

Parameters

Name Required/Optional Data type Description
Field Required Long The name of the table field. Can be one of the PjField constants.
AlignData Optional Long The alignment of the table data. Can be one of the PjAlignment constants. The default value is pjRight.
Width Optional Long The width of the table field in points. The default value is 10.
Title Optional String The title of the table field.
AlignTitle Optional Long The alignment of the title. Can be one of the PjAlignment constants. The default value is pjCenter.
Before Optional Long Position of the title. The default value is -1.
AutoWrap Optional Boolean True if the data in the table field automatically wrap. The default value is True.

Return value

TableField

See also

TableFields Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.