Article ID: 162385
Article Last Modified on 10/11/2006
Sub GetEntryEffectFromObject()
' Used to store the EntryEffect type.
Dim lTypeOfEffect As Long
' This is the section of code that retrieves the EntryEffect Type.
With ActiveWindow.Selection.ShapeRange.AnimationSettings
lTypeOfEffect = .EntryEffect
End With
End Sub
The following sample code retrieves the EntryEffect type that is currently
applied to a slide. The code loops through all slides in the active
presentation and checks the EntryEffect of each one.
Sub GetEntryEffectFromSlide()
Dim sSlideObject As Slide
Dim lTypeOfEffect As Long
' Get the slide show transition EntryEffect property for the slide.
For Each sSlideObject In ActivePresentation.Slides
lTypeOfEffect = sSlideObject.SlideShowTransition.EntryEffect
Next sSlideObject
End Sub
In the example above, the lTypeOfEffect is replaced each time the macro
loops with the EntryEffect of the next object. If you want to store the
EntryEffect for every slide, make lTypeOfEffect an array.
Sub SetEntryEffectForObject()
' Used to store the EntryEffect type.
Dim lTypeOfEffect As Long
' Set the EntryEffect type.
With ActiveWindow.Selection.ShapeRange.AnimationSettings
.EntryEffect = ppEffectFlyFromLeft
End With
End Sub
This example sets the EntryEffect to ppEffectFlyFromLeft. When you run the
slide show, the object flys from the left of the screen to its current
position on the slide. For a list of the different entry effects you can
use, see the "EntryEffect Constants List" section of this article.
Sub SetEntryEffectForSlide()
' Use this to refer to slide 1.
With ActivePresentation.Slides(1)
' Sets the EntryEffect to Checkerboard Across.
.SlideShowTransition.EntryEffect = ppEffectCheckerboardAcross
End With
End Sub
ppEffectAppear
ppEffectFlyFromBottom
ppEffectFlyFromBottomLeft
ppEffectFlyFromBottomRight
ppEffectFlyFromLeft
ppEffectFlyFromRight
ppEffectFlyFromTop
ppEffectFlyFromTopLeft
ppEffectFlyFromTopRight
ppEffectBlindsHorizontal
ppEffectBlindsVertical
ppEffectBoxInm
ppEffectBoxOut
ppEffectCheckerboardAcross
pEffectCheckerboardDown
ppEffectCrawlFromDown
ppEffectCrawlFromLeft
ppEffectCrawlFromRight
ppEffectCrawlFromUp
ppEffectDissolve
ppEffectFlashOnceFast
ppEffectFlashOnceMedium
ppEffectFlashOnceSlow
ppEffectPeekFromDown
ppEffectPeekFromLeft
ppEffectPeekFromRight
ppEffectPeekFromUp
ppEffectRandomBarsHorizontal
ppEffectRandomBarsVertical
ppEffectRandom
ppEffectSpiral
ppEffectSplitHorizontalIn
ppEffectSplitHorizontalOut
ppEffectSplitVerticalIn
ppEffectSplitVerticalOut
ppEffectStretchAcross
ppEffectStretchDown
ppEffectStretchLeft
ppEffectStretchRight
ppEffectStretchUp
ppEffectStripsDownLeft
ppEffectStripsDownRight
ppEffectStripsLeftDown
ppEffectStripsLeftUp
ppEffectStripsRightDown
ppEffectStripsRightUp
ppEffectStripsUpLeft
ppEffectStripsUpRight
ppEffectSwivel
ppEffectWipeDown
ppEffectWipeLeft
ppEffectWipeRight
ppEffectWipeUp
ppEffectZoomBottom
ppEffectZoomCenter
ppEffectZoomIn
ppEffectZoomInSlightly
ppEffectZoomOut
ppEffectZoomOutSlightly
ppEffectUncoverDown
ppEffectUncoverLeft
ppEffectUncoverLeftDown
ppEffectUncoverLeftUp
ppEffectUncoverRight
ppEffectUncoverRightDown
ppEffectUncoverRightUp
ppEffectUncoverUp
ppEffectCoverDown
ppEffectCoverLeft
ppEffectCoverLeftDown
ppEffectCoverLeftUp
ppEffectCoverRight
ppEffectCoverRightDown
ppEffectCoverRightUp
ppEffectCoverUp
ppEffectCut ppEffectCutThroughBlack
ppEffectFade
ppEffectNone
ppEffectMixed
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 97 8.00 ppt8 vba vbe macppt mac_ppt ppt98 98 powerpt
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB162385