G
Geoff Cox
Hello,
I cannot see why a smiley face appears for the
Type:=msoTextBox
in the code below?
A Microsoft joke?!
Cheers
Geoff
Sub AddMotionPath()
Dim shpNew As Shape
Dim effNew As Effect
Dim aniMotion As AnimationBehavior
Set shpNew = ActivePresentation.Slides(1).Shapes _
.AddShape(Type:=msoTextBox, Left:=100, _
Top:=300, Width:=100, Height:=100)
shpNew.TextFrame.TextRange.Text = "moving word"
Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _
.AddEffect(Shape:=shpNew, effectId:=msoAnimEffectCustom, _
Trigger:=msoAnimTriggerWithPrevious)
Set aniMotion = effNew.Behaviors.Add(msoAnimTypeMotion)
With aniMotion.MotionEffect
.FromX = 0.00000638889
.FromY = -0.0000037037
.ToX = 0.48039
.ToY = -0.32569
End With
End Sub
I cannot see why a smiley face appears for the
Type:=msoTextBox
in the code below?
A Microsoft joke?!
Cheers
Geoff
Sub AddMotionPath()
Dim shpNew As Shape
Dim effNew As Effect
Dim aniMotion As AnimationBehavior
Set shpNew = ActivePresentation.Slides(1).Shapes _
.AddShape(Type:=msoTextBox, Left:=100, _
Top:=300, Width:=100, Height:=100)
shpNew.TextFrame.TextRange.Text = "moving word"
Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _
.AddEffect(Shape:=shpNew, effectId:=msoAnimEffectCustom, _
Trigger:=msoAnimTriggerWithPrevious)
Set aniMotion = effNew.Behaviors.Add(msoAnimTypeMotion)
With aniMotion.MotionEffect
.FromX = 0.00000638889
.FromY = -0.0000037037
.ToX = 0.48039
.ToY = -0.32569
End With
End Sub