View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
mangesh_yadav[_342_] mangesh_yadav[_342_] is offline
external usenet poster
 
Posts: 1
Default code to check a: drive has a disk in


This worked for me.


Sub test()

On Error GoTo MY
MyNAme = Dir("A:\")
Exit Sub

MY:
MsgBox "Please insert disk in A:"

End Sub



Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=380033