Hi,
I have a large number of .txt files that get deposited in a directory. I'd like some code in Excel that will cycle through all the .txt files, open them and then close them in .xlsx format. (without any prompts, etc).
I know it's relatively simple but not sure how to cycle through files.
It's not a show-stopper, but would be good to point the code at a root folder which then has folders at the next level with the files in.
eg.
:\root folder\dir1\file1.txt
:\root folder\dir2\file2.txt
etc. where there can be any number or naming convention of folders under :\root folder
I have a large number of .txt files that get deposited in a directory. I'd like some code in Excel that will cycle through all the .txt files, open them and then close them in .xlsx format. (without any prompts, etc).
I know it's relatively simple but not sure how to cycle through files.
It's not a show-stopper, but would be good to point the code at a root folder which then has folders at the next level with the files in.
eg.
:\root folder\dir1\file1.txt
:\root folder\dir2\file2.txt
etc. where there can be any number or naming convention of folders under :\root folder