B
Bert
I'm using PowerPoint 2003, and want to play a sound when a commandbutton is
clicked. It seems this code should work, but it doesn't. (The sound file
is in the same folder as the presentation.)
Thanks.
Bert
Private Sub CommandButton3_Click()
TextBox1.Text = TextBox1.Text + "OK"
With
ActivePresentation.Slides(1).Shapes("CommandButton3").AnimationSettings
.SoundEffect.ImportFromFile "wow.wav"
.SoundEffect.Play
End With
End Sub
clicked. It seems this code should work, but it doesn't. (The sound file
is in the same folder as the presentation.)
Thanks.
Bert
Private Sub CommandButton3_Click()
TextBox1.Text = TextBox1.Text + "OK"
With
ActivePresentation.Slides(1).Shapes("CommandButton3").AnimationSettings
.SoundEffect.ImportFromFile "wow.wav"
.SoundEffect.Play
End With
End Sub