Option Explicit
Declare Function Beep Lib "kernel32" (ByVal Frequence As Long, ByVal Duree As Long) As Long
'==================
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'==================
Sub Test_Musique_Beep()
Dim i%, Note()
Note = Array("", 264, 297, 330, 352, 396, 440, 495, 528, _
528, 495, 440, 396, 352, 330, 297, 264)
For i = 1 To 16
Beep Note(i), 200
' Sleep 200
Next i
End Sub
'==================