Andy,
Thanks for taking the time to respond.
Just for interest I found an variant at
http://www.visualbasicforum.com/t137394.html
Best wishes,
Anthony
______________________________
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
Function vbmciSendString(ByVal Command As String, ByVal
hWnd As Long) As String
Dim Buffer As String
Dim dwRet As Long
Buffer = Space$(100) ' Create a buffer
dwRet = mciSendString(Command, ByVal Buffer, Len(Buffer),
hWnd)
vbmciSendString = Buffer
End Function
Private Sub Eject_Click()
Dim sEjectCD As String
sEjectCD = vbmciSendString("set cdaudio door open", 0)
End
End Sub
______________________