OK, I wasn't expecting to ask another question this year as I am starting my Holiday leave tomorrow.. But this one stumped me and Its a simple one...
What am I missing here?
What am I missing here?
Code:
Function CheckDisk() As Boolean
CheckDisk = False
On Error GoTo NoDisk
x = Dir("H:\uaget.txt")
CheckDisk = True
MsgBox "Its there.", , _
"Found it":
'run the rest of the code here
Exit Function
NoDisk:
MsgBox "Please connect USB Jump Drive and run me again.", , _
"Try Again":
End Function