Application.BoxCellEdit Method

Project Developer Reference

Sets the properties for an individual cell in a Network Diagram data template.

Syntax

expression.BoxCellEdit(Name, Cell, FieldName, Font, FontSize, FontColor, Bold, Italic, Underline, HorizontalAlignment, VerticalAlignment, TextLineLimit, ShowLabel, Label, DateFormat)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Name Required String The name of the data template containing the cell to edit.
Cell Required Long The cell to edit. Can be one of the PjCell constants.
FieldName Optional Long The name of the field to display in the cell. Can be one of the PjField constants.
Font Optional String The name of the font.
FontSize Optional Integer The size of the font, in points.
FontColor Optional Long The color of the font. Can be one of the PjColor constants.
Bold Optional Boolean True if the font is bold.
Italic Optional Boolean True if the font is italic.
Underline Optional Boolean True if the font is underlined.
HorizontalAlignment Optional Long Specifies the horizontal alignment of text in the cell. Can be one of the following PjAlignment constants: pjLeft, pjCenter, or pjRight.
VerticalAlignment Optional Long The date format for the cell when the field specified with FieldName is a date field. Can be one of the PjDateFormat constants.

Return Value
Boolean

Remarks

Using the BoxCellEdit method with only the Name and Cell arguments specified has no effect.

Example
This example modifies the specified template to include an additional row listing the assigned resources.

Visual Basic for Applications
  Sub AddNewRowCell()
    Application.BoxCellLayout Name:="Microsoft Project 98 upgrade template", CellRows:=4, MergeCells:=True
    
    Application.BoxCellEdit Name:="Microsoft Project 98 upgrade template", Cell:=pjCell1_4, _
        FieldName:=pjTaskResourceNames, Font:="Arial", FontSize:="8", FontColor:=pjColorAutomatic, Bold:=False, _
            Italic:=False, Underline:=False, HorizontalAlignment:=pjLeft, VerticalAlignment:=pjMiddle, _
                TextLineLimit:=1, ShowLabel:=False
End Sub

See Also