Macros excel 2011 sous mac

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

1 réponse

  • Votes
  • Date
  • Date décroissante
  1. 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
    1. 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