April 2006
Beginner
1114 pages
98h 16m
English
shaperange.Align(AlignCmd, RelativeTo)
Aligns the shapes in a ShapeRange.
|
Argument |
Settings |
|---|---|
|
|
An |
|
|
True aligns shapes relative to the Excel window; False aligns shapes relative to the first shape in the |
The following code uses previous examples to draw three shapes, adds them to a ShapeRange, then aligns the shapes relative to the first shape drawn:
Sub LeftAlign( )
Dim ws As Worksheet, sr As ShapeRange
Set ws = ActiveSheet
' Draw three objects (call previous examples)
DrawRect
DrawLine
EmbedWordArt
' Create a shape range
Set sr = ws.Shapes.Range(Array(1, 2, 3))
' Left-align three shapes
sr.align msoAlignLefts, False
End SubRead now
Unlock full access