M
MeSteve
I am trying to automate the creation of a slide show and need to create
shapes. I can create shapes and I can modify shapes that I know the name or
reference of. how do I add a shape and immediatly set the name so I can
continue to modify its properties? The problem as I am seeing it is the
AddShape method is part of Shapes whereas Name method is part of Shape and
requires a reference. Here is what I have so far.
With ppt
With Slides(1)
With Shapes
.AddShape Type:=msoShapeRectangle, Left:=10, Top:=0, Width:=100,
Height:=58
End With
With Shape(1)
.Name = "Title"
End With
End With
shapes. I can create shapes and I can modify shapes that I know the name or
reference of. how do I add a shape and immediatly set the name so I can
continue to modify its properties? The problem as I am seeing it is the
AddShape method is part of Shapes whereas Name method is part of Shape and
requires a reference. Here is what I have so far.
With ppt
With Slides(1)
With Shapes
.AddShape Type:=msoShapeRectangle, Left:=10, Top:=0, Width:=100,
Height:=58
End With
With Shape(1)
.Name = "Title"
End With
End With