Class ColorEffect (PowerPoint VBA)

The class ColorEffect represents a color effect for an animation behavior. To use a ColorEffect class variable it first needs to be instantiated, for example


Dim cet as ColorEffect
Set cet = ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Behaviors(1).ColorEffect

By

Returns a ColorFormat object that represents a change to the color of the object by the specified number, expressed in RGB format.

Do not confuse this property with the ByX or ByY properties of the ScaleEffect and MotionEffect objects, which are only used for scaling or motion effects.


Dim cftBy As ColorFormat
Set cftBy = ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Behaviors(1).ColorEffect.By

From

Sets or returns a ColorFormat object that represents the starting RGB color value of an animation behavior.

Use this property in conjunction with the To property to transition from one color to another. Do not confuse this property with the FromX or FromY properties of the ScaleEffect and MotionEffect objects, which are only used for scaling or motion effects.


Dim cftFrom As ColorFormat
Set cftFrom = ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Behaviors(1).ColorEffect.From

To

Sets or returns a ColorFormat object that represents the RGB color value of an animation behavior.

Use this property in conjunction with the From property to transition from one color to another. Do not confuse this property with the ToX or ToY properties of the ScaleEffect and MotionEffect objects, which are only used for scaling or motion effects.


Dim cftTo As ColorFormat
Set cftTo = ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Behaviors(1).ColorEffect.To