Application.BoxGetXPosition method (Project)

Returns the horizontal position of the upper-left corner of a box in the active Network Diagram. At a zoom setting of 100%, the number of nonscaleable units returned by BoxGetXPosition is equivalent to an equal number of pixels.

Syntax

expression. BoxGetXPosition( _TaskID_, _ProjectName_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
TaskID Required Long The identification number of the task.
ProjectName Optional String If the active project is a consolidated project, specifies the name of the project for the identification number specified by TaskID. The default value is the name of the active project.

Return value

Long

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.