BoxCellLayout Method

Sets the cell layout and size properties for a Network Diagram data template. The initial layout of a new data template is 2 rows by 2 columns of 100% width cells with cell merging enabled.

Syntax

expression**.BoxCellLayout(Name, CellRows, CellColumns, CellWidth, MergeCells)**

*expression   *     Optional. An expression that returns an Application object.

Name    Required String. The name of the data template to edit.

CellRows    Optional Long. A value from 1 through 4 that specifies the number of rows of cells in the data template.

CellColumns    Optional Long. A value from 1 through 4 that specifies the number of columns of cells in the data template.

CellWidth    Optional Integer. A value from 100 through 200 that specifies the percentage by which to enlarge the width of the template cells.

MergeCells    Optional Boolean. True if blank cells are merged with the cell to the left.

Remarks

Using the BoxCellLayout method with only the Name argument specified has no effect.

Example

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

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

Applies to | Application Object

See Also | BoxCellEdit Method | BoxDataTemplate Method | BoxLayout Method