S
Sean
Can anyone help.
I am trying to use VBA to automate a custom animation.
The code below doesn't work and I don't know why.
For Each objShape In objSlide.Shapes
With objShape.AnimationSettings
.Animate = msoTrue
.ChartUnitEffect = ppAnimateBySeries
.AnimateBackground = msoTrue
End With
Next
VBA complains about ChartUnitEffect, saying
AnimationSettings (unknown member) Invalid Request: Sorry, you can't
set chart effects on objects that are not charts.
The object it's complaining about is a chart, and I can set the same
custom animation manually without any problem.
I can also record a macro of the manual operation, and it records fine,
but the macro then doesn't work when I run it and produces the same
error as above.
Hope someone knows the answer.
I am trying to use VBA to automate a custom animation.
The code below doesn't work and I don't know why.
For Each objShape In objSlide.Shapes
With objShape.AnimationSettings
.Animate = msoTrue
.ChartUnitEffect = ppAnimateBySeries
.AnimateBackground = msoTrue
End With
Next
VBA complains about ChartUnitEffect, saying
AnimationSettings (unknown member) Invalid Request: Sorry, you can't
set chart effects on objects that are not charts.
The object it's complaining about is a chart, and I can set the same
custom animation manually without any problem.
I can also record a macro of the manual operation, and it records fine,
but the macro then doesn't work when I run it and produces the same
error as above.
Hope someone knows the answer.