ImportFromFile Method

Applies To

SoundEffect object.

Description

Specifies the sound that will be played whenever the specified shape is clicked or animated or whenever the specified slide transition occurs.

Syntax

expression.ImportFromFile(FullName)

expression Required. An expression that returns a SoundEffect object.

FullName Required String. The name of the specified sound file.

Example

This example specifies that the file Dudududu.wav will start to play at the transition to slide two in the active presentation and will continue to play until the next sound starts.

With ActivePresentation.Slides(2).SlideShowTransition
    .SoundEffect.ImportFromFile "c:\sndsys\dudududu.wav"
    .LoopUntilNextSound = True
End With