Forum Discussion
HELP with data delimiters
super3origin I think the best solution for your request is to save all your files in a specific folder, then write a macro to loop through all files of that same format in that folder, import each to Excel and split Text to column with delimiter, save imported data in a workbook, name it accordingly then close and move to the next file.
You will need to google vba codes for 2 things:
- Loop through a directory to open each file. e.g. https://www.thespreadsheetguru.com/the-code-vault/2014/4/23/loop-through-all-excel-files-in-a-given-folder
- Import file to Excel, e.g. https://sitestory.dk/excel_vba/automatic-import-textfile.htm
If the number of columns in each file is not consistent, you may need to imitate the approach of this code to automate the import regardless of # columns : https://www.mrexcel.com/board/threads/import-tab-delimited-text-file-into-excel-via-directory.671778/