I have been pulling my hair out for a couple of days and there is no hair left so I thought I might ask a question.
In what I will call the "Automated" mode, I have a routine that opens a text file.
It then reads fully qualified CSV Filenames from the data in the text file.
I then use this filenames to open the file and to process the information contain within the CSV File
When attempting the File Open, I receive a File Not Found Error.
I can take the fully qualified filename and paste it into File Manger and it opens the File.
I can run through the program in what I will call "Normal" mode that allows me to select the filename from the open file dialog box..
The same filename that received the File Not Found in the Automated mode opens without issue.
I use the same code in both cases.
This is not a different "identical" set of Macros but the very same ones in both cases.
The only difference is that in the Automated Mode I get the filename from within another file while in the Normal Mode, I pick the filename from the VBA OperFile dialog box.
I do use dofferent File Nuimbers for the appropriate file opens.
I use file #3 when opening and reading the text file and File #1 to open and read the actual CSV File.
I have a similar routine running in different applications and it works just file.
I have tried to use that code but it is written so differently that it seems hard to do.
WARNING: I am an old coot and learned VBA the hard way.
My code "sucks" but I am trying to learn to use objects but I have a ways to go.
I was never exposed to OO coding until I sent my staff to training to learn how to use it.
I am rather clueless much to my chagrin.
I have no idea at this point what to try next.
You would probably like to see my code but I am not sure how I need to add this to my message within the forum.
Help there would be nice as well.
I hoee I have provided helpful information but will respond with any additional information requested.
Thank you for any light you might shed upon my issue.
Then perhaps my hair will grow back!
Dan Foltz
In what I will call the "Automated" mode, I have a routine that opens a text file.
It then reads fully qualified CSV Filenames from the data in the text file.
I then use this filenames to open the file and to process the information contain within the CSV File
When attempting the File Open, I receive a File Not Found Error.
I can take the fully qualified filename and paste it into File Manger and it opens the File.
I can run through the program in what I will call "Normal" mode that allows me to select the filename from the open file dialog box..
The same filename that received the File Not Found in the Automated mode opens without issue.
I use the same code in both cases.
This is not a different "identical" set of Macros but the very same ones in both cases.
The only difference is that in the Automated Mode I get the filename from within another file while in the Normal Mode, I pick the filename from the VBA OperFile dialog box.
I do use dofferent File Nuimbers for the appropriate file opens.
I use file #3 when opening and reading the text file and File #1 to open and read the actual CSV File.
I have a similar routine running in different applications and it works just file.
I have tried to use that code but it is written so differently that it seems hard to do.
WARNING: I am an old coot and learned VBA the hard way.
My code "sucks" but I am trying to learn to use objects but I have a ways to go.
I was never exposed to OO coding until I sent my staff to training to learn how to use it.
I am rather clueless much to my chagrin.
I have no idea at this point what to try next.
You would probably like to see my code but I am not sure how I need to add this to my message within the forum.
Help there would be nice as well.
I hoee I have provided helpful information but will respond with any additional information requested.
Thank you for any light you might shed upon my issue.
Then perhaps my hair will grow back!
Dan Foltz