Skip to content

Instantly share code, notes, and snippets.

@can3p
Created March 21, 2013 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save can3p/5215043 to your computer and use it in GitHub Desktop.
Save can3p/5215043 to your computer and use it in GitHub Desktop.
Function FileExists(ByVal fname As String) As String
Dim objFSO As Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(fname) Then
FileExists = "1"
Else
FileExists = "0"
End If
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment