C
Chris_h
Hi,
I'm trying test whether a folder exists using a filesystem object (never
used this before - starting simple but I do need to do more compex stuff).
I've set the FSO in one module using >
Set fs = CreateObject("Scripting.FileSystemObject")
and I'm using >
If fs.FolderExists("C:\Files") Then
MsgBox "Folder Exists!"
End If
In another module to detect whether the specified folder exists. When I run
this I get a type mismatch. I've tried using get folder and trapping the
error but I get the same error. Any ideas why?
Thanks in advance,
Chris
I'm trying test whether a folder exists using a filesystem object (never
used this before - starting simple but I do need to do more compex stuff).
I've set the FSO in one module using >
Set fs = CreateObject("Scripting.FileSystemObject")
and I'm using >
If fs.FolderExists("C:\Files") Then
MsgBox "Folder Exists!"
End If
In another module to detect whether the specified folder exists. When I run
this I get a type mismatch. I've tried using get folder and trapping the
error but I get the same error. Any ideas why?
Thanks in advance,
Chris