Class PropertyEffect (PowerPoint VBA)

The class PropertyEffect represents a property effect for an AnimationBehavior object.

Set

To use a PropertyEffect class variable it first needs to be instantiated, for example

Dim pet as PropertyEffect
Set pet = ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Behaviors(1).PropertyEffect

PropertyEffect class variables can be set using the AnimationBehavior.PropertyEffect procedure.

From

Sets or returns a Variant that represents the starting value of an object's property.

the From property is similar to the Points property, but using the From property is easier for simple tasks. The default value is Empty, in which case the current position of the object is used. 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.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Behaviors(1).PropertyEffect.From =

Parent

Returns the parent object for the specified object.

Points

Returns an AnimationPoints object that represents a point in an animation.

Use the From and To properties to set the value of this property.

Dim apsPoints As AnimationPoints
Set apsPoints = ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Behaviors(1).PropertyEffect.Points

Property

Sets or returns an MsoAnimProperty constant that represents an animation property.

Possible Values are msoAnimColor - Color, msoAnimHeight - Height, msoAnimNone - None, msoAnimOpacity - Opacity, msoAnimRotation - Rotation, msoAnimShapeFillBackColor - Shape filled with back color, msoAnimShapeFillColor - Shape filled with color, msoAnimShapeFillOn - Shape fill on, msoAnimShapeFillOpacity - Shape fill opacity, msoAnimShapeLineColor - Colored line, msoAnimShapeLineOn - Shape line on, msoAnimShapePictureBrightness - Brightness of the picture, msoAnimShapePictureContrast - Contrast of the picture, msoAnimShapePictureGamma - Gamma properties of the picture, msoAnimShapePictureGrayscale - Grayscale properties of the picture, msoAnimShapeShadowColor - Shadow properties of the picture, msoAnimShapeShadowOffsetX - Shadow Offset X, msoAnimShapeShadowOffsetY - ShadowOffset Y, msoAnimShapeShadowOn - Shadow on, msoAnimShapeShadowOpacity - Opacity of the shape's shadow, msoAnimShapeShadowType - Type of shadow, msoAnimTextBulletCharacter - Text bullet character, msoAnimTextBulletColor - Text bullet color, msoAnimTextBulletFontName - Text bullet fontname, msoAnimTextBulletNumber - Text bullet number, msoAnimTextBulletRelativeSize - Relative size of text bullet, msoAnimTextBulletStyle - Text bullet style, msoAnimTextBulletType - Text bullet type, msoAnimTextFontBold - Text font bold, msoAnimTextFontColor - Text font color, msoAnimTextFontEmboss - Text font emboss, msoAnimTextFontItalic - Text font italic, msoAnimTextFontName - Text font name, msoAnimTextFontShadow - Text font shadow, msoAnimTextFontSize - Text font size, msoAnimTextFontStrikeThrough - Text font strikethrough, msoAnimTextFontSubscript - Text font subscript, msoAnimTextFontSuperscript - Text font superscript, msoAnimTextFontUnderline - Text font underline, msoAnimVisibility - Visibility, msoAnimWidth - Width, msoAnimX - X coordinate, msoAnimY - Y coordinate.
ActiveWindow.Selection.SlideRange(1).TimeLine.MainSequence(1).Behaviors(1).PropertyEffect.Property = msoAnimColor

To

Sets or returns a Variant that represents the ending value of an object's property.

The default value is Empty, in which case the current position of the object is used. 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.

ActivePresentation.SlideMaster.TimeLine.MainSequence(1).Behaviors(1).PropertyEffect.To =