Application.BoxAlign method (Project)

Aligns the specified part of the selected boxes in the active Network Diagram view with the same part of the box that has the focus.


expression. BoxAlign( _Alignment_ )

expression A variable that represents an Application object.


Name Required/Optional Data type Description
Alignment Required Long Specifies which side or portion of a box to use for the alignment. Can be one of the PjAlign constants.

Return value



If only one box is selected, the BoxAlign method has no effect.

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.