mtroche
Civil/Environmental
- Jun 4, 2001
- 39
I have this SUB to look if a file exists. If the file exists it's supposed to do nothing, but if it doesn't exists the file is created. The problem is that if the file already exists the following error occurs: "Path not found." Of course, the file "X" does exists in "c:\".
Sub test()
If Dir("c:\X\ProjsB") = "" Then
MkDir "c:\X\ProjsB"
End If
End Sub
Sub test()
If Dir("c:\X\ProjsB") = "" Then
MkDir "c:\X\ProjsB"
End If
End Sub