File Exists on Disk


Function DiskFileExists(sFilePathAndName As String) As Boolean
    
    ‘Returns True if the file exists, False if it doesn’t
    
    DiskFileExists = CBool(Len(Dir(sFilePathAndName)))
    
End Function

2 Comments

  1. SAMAD:

    VERY NICE AND QUICK FUNCTION
    THANKS

  2. coffee joe:

    Very Elegant!

Leave a comment