'declare Variables
Dim osld As Slide
Dim oshp As Shape
Dim oeff As Effect
' SET objects
Set osld = ActivePresentation.Slides(7)
Set oshp = osld.Shapes("Star 1")
Set oeff = osld.TimeLine.MainSequence.AddEffect(Shape:=oshp, effectid:=msoAnimEffectChangeFillColor)
With oeff
.EffectParameters.Color2.RGB = RGB(Red:=10, Green:=45, Blue:=201)
.Timing.Duration = 2
End With
oshp.Left = oshp.Left + 100 ' Added to verify something was coming thru!
可悲的是它仍然不起作用......它可以编译,但对幻灯片没有影响......
我已更新代码以显示您的建议
注意:填充颜色是在创建形状时定义的
我在形状的左侧值上添加了 + 100,以确保它实际上是通过的,它确实移动但不会改变颜色......
是否有“官方”列表说明哪些效果支持哪些参数?
感谢您与我一起度过这个难关!:)