Distribute Method

         Example         Applies To

Horizontally or vertically distributes the shapes in the specified range of shapes.

Syntax

expression.Distribute(DistributeCmd, RelativeTo)

expression   Required. An expression that returns a ShapeRange object.

DistributeCmd   Required Long. Specifies whether shapes in the range are to be distributed horizontally or vertically. Can be either of the following MsoDistributeCmd constants: msoDistributeHorizontally or msoDistributeVertically.

RelativeTo   Required Long. Not used in Microsoft Excel. Must be False.