Application.DrawingCreate method (Project)

Activates the drawing feature.

Syntax

expression. DrawingCreate( _Type_, _Behind_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Type Required Long The type of drawing to create. Can be one of the following PjShape constants: pjOLEObject, pjLine, pjArrow, pjRectangle, pjEllipse, pjArc, pjPolygon, or pjTextBox.
Behind Optional Boolean True if the drawing is created behind task bars. The default value is False.

Return value

Boolean

Remarks

The DrawingCreate method requires user interaction before additional code can be executed.

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.