how get the Hammer sound?

G

Geoff Cox

Hello,

The code below finds any EndShow buttons and causes the chord sound to
be played when the button appears.

How would I change the sound to say the "Hammer" sound which comes
with PowerPoint? (By hand you get it using effect options | effect |
sound etc.)

Thanks

Geoff

For Each oSh In oSl.Shapes
If oSh.Type = 1 Then
If oSh.AutoShapeType = 132 Then

With oSh.AnimationSettings
.Animate = True
.TextLevelEffect = ppAnimateByAllLevels
.SoundEffect.ImportFromFile "c:\a-temp1\chord.wav"
End With

End If
End If

Next oSh
 
G

Geoff Cox

.SoundEffect.ImportFromFile "C:\Program Files\Microsoft
Office\OFFICE11\MEDIA\hammer.wav

John,

I guess that is the obvious way - somehow thought there might be
another!

Thanks.

Geoff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VBA error? 2
VBA question 11
VBA removes other animation?! 6
code not working - why? 10
VBA - make view active? 27
finding oHl.Address for an action button? 2
vba logic? 13
code to find colon in text placeholder? 11

Top