I've just found if file s_path exists in C:\Users\Test\Documents the function returns True.Code:Function fileExists(s_path As String) As Boolean Dim obj_fso As Object Set obj_fso = CreateObject("Scripting.FileSystemObject") fileExists = obj_fso.fileExists(s_path) Set obj_fso = Nothing End Function
Is it known why that is ?
How might I best correct it so if no Path is passed in it will return False? Thanks