Afficher un message
Vieux 14/10/2005, 17h17   #3 (permalink)
excalibur
XLDnaute Impliqué
 
Avatar de excalibur
 
Date d'inscription: février 2005
Localisation: grenoble
Version Excel : Excel 2003 (PC)
Messages: 839
Par défaut Re:Message audio par VBA ?

bonjour flamel , le forum une methode parmi d autres ................ Option Explicit
Declare Function sndPlaySound32 Lib 'winmm.dll' Alias 'sndPlaySoundA' _
(ByVal lpzSoundName As String, ByVal uFlags As Long) As Long
Sub Musique()
If Application.CanPlaySounds Then
Call sndPlaySound32('d:\\excel\\goodbye.wav', 0)
Call sndPlaySound32('d:\\excel\\buddyin.wav', 0)
Call sndPlaySound32('d:\\excel\\buddyout.wav', 0)
End If
End Sub ' attention dans l ex les fichiers son se trouve d:\\excel salutations
__________________
salutations

jean pierrre
excalibur est déconnecté   Réponse avec citation