0

My Excel is 64-bit. The following code is not running on Windows and Excel 64-bit. Someone from friends can update this code for Windows and Excel 64-bit?

Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Private Sub command1_Click()
Dim LRet As Long
    LRet = mciSendString("set CDAudio door open", returnstring, 127, 0)
End Sub
Private Sub command2_Click()
Dim LRet As Long
    LRet = mciSendString("set CDAudio door closed", returnstring, 127, 0)
End Sub
First Last
  • 125
  • 1
  • 12

0 Answers0