CommandEffect.Command Property (PowerPoint)
Represents the command to be executed for the command effect. Read/write.
Syntax
expression .Command
expression A variable that represents a CommandEffect object.
Return Value
String
Remarks
You can send OLE verbs to embedded objects using this property.
If the shape is an OLE object, then the ole object will execute the command if it understands the verb.
If the shape is a media object (sound/video), Microsoft PowerPoint understands the following verbs: play, stop, pause, togglepause, resume and playfrom. Any other command sent to the shape will be ignored.
Example
The following example shows how to set a command effect animation behavior.
Set bhvEffect = effectNew.Behaviors.Add(msoAnimTypeCommand)
With bhvEffect.CommandEffect
.Type = msoAnimCommandTypeVerb
.Command = Play
End With