Hello all,
I have a question but i am not even sure if this can be done. Here is what i currently have:
1. An outside program executes a bat file prompting the user for a name. Once you type the name, it saves a text file with a bunch of info on it to a specific folder.
2. The user then manually opens a specific excel file. During open, it asks the user to select the text file they just saved. It opens that file in another session of excel and sets it as the wbsource.
3. The main excel file then runs its VBA gathering information from that text file it opened, once finished it closes that text file, continues doing stuff, saves itself to a name thats in a specific cell's value, then closes excel.
Is there a way to avoid the manual opening and selecting of that text file by possibly using a batch file of some sort? That way, it will all be done automatically once you type the name and press enter in your batch file. I know how to tell it to open the specific excel file, but have no idea how to tell excel which text file to load after it opens.
Is this even possible?
Bookmarks