Hello All, I was wondering if someone could help explain this piece of VB code to me? I've read about the FileSystemObject online but the 'rfs' function is a bit confusing. Any help is appreciated.
Thanks
Function rfs(filespec)
Dim fso, Msg
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(filespec)) Then
Msg = "YES"
Else
Msg = "NO"
End If
rfs = Msg
End Function