Excel 2010 - Splitting files in folder

Joined
Jul 9, 2012
Messages
24
Reaction score
0
I have several txt files in a folder, say FileA.txt, FileB.txt, etc.

They exceed 1 million rows so I would like to split them, create FileA_1.txt, FileA_2.txt, etc. FileB_1.txt, FileB_2.txt, etc. and store them newly created files in a different location to the original files.

Does anybody have any code to do this?

Thanks​
 
Joined
Jul 9, 2012
Messages
24
Reaction score
0
Thanks but that utility only does a single file at a time with the user having to input each one.

I have managed to write my own VBA subroutine for this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top