M
Michael Freitter
Hello!
I have record followed statements in PowerPoint: (center an object over a
slide)
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
Now, I want to call this function from an other application (e.g. MS-Project):
Set PSPapp = CreateObject("PowerPoint.Application")
PSPapp.Visible = msoTrue
Set PSPpraes = PSPapp.presentations.Add
Set grObjSP = PSPpraes.Slides.Add(1, ppLayoutBlank)
Set L1 = grObjSP.Shapes.AddShape(msoShapeRectangle, 10, 10, 100, 200)
And now, I want to center this rectangle over the slide, but with ...
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
.... do not work!
Perhaps an expert can help me!
Thank you!
Michael F.
I have record followed statements in PowerPoint: (center an object over a
slide)
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
Now, I want to call this function from an other application (e.g. MS-Project):
Set PSPapp = CreateObject("PowerPoint.Application")
PSPapp.Visible = msoTrue
Set PSPpraes = PSPapp.presentations.Add
Set grObjSP = PSPpraes.Slides.Add(1, ppLayoutBlank)
Set L1 = grObjSP.Shapes.AddShape(msoShapeRectangle, 10, 10, 100, 200)
And now, I want to center this rectangle over the slide, but with ...
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
.... do not work!
Perhaps an expert can help me!
Thank you!
Michael F.