I have the following code that I'm using to see if any files with the .txt extension exists. When I run the code it keeps coming back that the file does not exists when in there is a .txt file in the directory.
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject"
If fso.FileExists("C:\CABC Mailing Lists\Outbound\*.txt"
Then
MsgBox "File Exists"
Else
MsgBox "File Does Not Exist"
End If
What am I doing wrong? Thanks in advance!
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject"
If fso.FileExists("C:\CABC Mailing Lists\Outbound\*.txt"
MsgBox "File Exists"
Else
MsgBox "File Does Not Exist"
End If
What am I doing wrong? Thanks in advance!