This strip of code is designed to open all .raw delimited text files in a folder, delimit them, and save them in another folder in .xlsm format. The script runs in a blank workbook and opens a text file one at a time in another workbook.
It gets as far as opening the first .raw file in the folder and then immediately failing. I am assuming that I am not properly activating the workbook I just opened.
Note that I cut some of the code out that isn't relevant to this question.
If my assumption is correct, how do I properly activate the workbook?![]()
Please Login or Register to view this content.
Thanks!
Bookmarks