Macros excel 2011 sous mac

sined -  
 sined -
Bonjour,
Voici mes macros:
Option Explicit
Declare Function sndPlaySound32 Lib "c\system32\winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uflags As Long) As Long

Sub cp()
Call sndPlaySound32(ThisWorkbook.Path & "\cp.wav", 1)
End Sub

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim F As Worksheet

If Range("j2") = "ok" Then
Call cp
End If
end sub
s'affiche: fichier introuvable:c/system32/winmm.dll alors qu'il n'y à pas de problème sous windows
Que faut il modifier ?
MERCI
A voir également:

1 réponse

f894009 Messages postés 17414 Date d'inscription   Statut Membre Dernière intervention   1 715
 
Bonjour,

s'affiche: fichier introuvable:c/system32/winmm.dll alors qu'il n'y à pas de problème sous windows Ben oui, ok pour windows mais pour un Mac car pas Windows en system d'exploitation
0
sined
 
j'ai bien compris mac ce n'est pas windows c'est pourquoi je demande aux bonnes volontés de bien vouloir m'indiquer comment écrire cela sur un mac
Merci
0