Schönen Abend Jean-Pierre!
*Jean-Pierre Blanc* schrieb am 27.05.2012 um 16:57 Uhr...
> Kann ich in einem Makro ein Sound aus Windows Media abspielen lassen?
,---------------------------------------------------------------------[ Modul1 ]---------------------------------------------------------------------.
¦ Option Explicit ¦
¦ Private Declare PtrSafe Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long ¦
¦ ¦
¦ Sub WavDateiAbspielen() ¦
¦ Call sndPlaySound("C:\Windows\Media\tada.wav", 1) ¦
¦ End Sub ¦
`----------------------------------------------------------------------------------------------------------------------------------------------------´
HTH
--
Servus | *Intelligenztest*
Didi | Etwas, das einem beweist, daß man besser darauf verzichtet
| hätte, es auszuprobieren