B
benedict.ryan
Hi all,
My PowerPoint macro stops work afte rI have used it a few times. First
off, I create the macro and try using it on a few pictures that I have
cut and pasted on to a slide. The macro works fine for about 3-8
slides, but then just stops working--I haven't changed a thing and I am
still working within the same file I created the macro in. Any ideas
why this would happen? I have attached the code below--it is very
basic!
Sub Report()
'
' Macro recorded 8/31/2006 by ryan.benedict
'
ActiveWindow.Selection.SlideRange.Shapes("Picture 3").Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.Height = 466.38
.Width = 621.88
End With
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ActiveWindow.Selection.ShapeRange.Align msoAlignTops, True
ActiveWindow.Selection.ShapeRange.ScaleHeight 0.98, msoFalse,
msoScaleFromTopLeft
ActiveWindow.Selection.SlideRange.Shapes.AddTextbox(msoTextOrientationHorizontal,
54, 450, 618, 28.875).Select
ActiveWindow.Selection.ShapeRange.TextFrame.WordWrap = msoTrue
With ActiveWindow.Selection.TextRange.ParagraphFormat
.LineRuleWithin = msoTrue
.SpaceWithin = 1
.LineRuleBefore = msoTrue
.SpaceBefore = 0.5
.LineRuleAfter = msoTrue
.SpaceAfter = 0
End With
ActiveWindow.Selection.ShapeRange.IncrementTop 6#
End Sub
My PowerPoint macro stops work afte rI have used it a few times. First
off, I create the macro and try using it on a few pictures that I have
cut and pasted on to a slide. The macro works fine for about 3-8
slides, but then just stops working--I haven't changed a thing and I am
still working within the same file I created the macro in. Any ideas
why this would happen? I have attached the code below--it is very
basic!
Sub Report()
'
' Macro recorded 8/31/2006 by ryan.benedict
'
ActiveWindow.Selection.SlideRange.Shapes("Picture 3").Select
With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.Height = 466.38
.Width = 621.88
End With
ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
ActiveWindow.Selection.ShapeRange.Align msoAlignTops, True
ActiveWindow.Selection.ShapeRange.ScaleHeight 0.98, msoFalse,
msoScaleFromTopLeft
ActiveWindow.Selection.SlideRange.Shapes.AddTextbox(msoTextOrientationHorizontal,
54, 450, 618, 28.875).Select
ActiveWindow.Selection.ShapeRange.TextFrame.WordWrap = msoTrue
With ActiveWindow.Selection.TextRange.ParagraphFormat
.LineRuleWithin = msoTrue
.SpaceWithin = 1
.LineRuleBefore = msoTrue
.SpaceBefore = 0.5
.LineRuleAfter = msoTrue
.SpaceAfter = 0
End With
ActiveWindow.Selection.ShapeRange.IncrementTop 6#
End Sub