Thread: Text Files
View Single Post
  #8 (permalink)  
Old 01-19-2008, 01:59 PM
mick mick is offline
Newbie
 
Join Date: Dec 2007
Posts: 4
Send a message via Yahoo to mick
Default Getting Closer

Thanks Erel. I'm almost there .I'm still having a bit of trouble because I'm first using
a variable to declare my file name.
MyFileName = "TestFile"
Suffix = ".txt"
If FileExist(MyFileName & Suffix) = true Then
MyFileName = "TestFile2"

That works Great,so when I try to inject the path like


MyFileName = "My Documents\TestFile"
Suffix = ".txt"
If FileExist(MyFileName & Suffix) = true Then
MyFileName = "My DocumentsTestFile2"

My error handler grabs it.
I Feel like such a pest here. I really do appreciate the amazing help I get here.
Thanks again Mick.
Reply With Quote