I am working with lots of txt files and I need a macro excel to do the following (if possible).
I detail it: I have a path with different .txt with different names, this is an example
prueba1.txt
prueba2.txt
prueba3.txt
prueba4.txt
prueba5.txt
I need a macro to export the name of each txt file to excel and open each file and read its lines and put the number of lines by txt something like this:
NAME FILE TXT ///// LINES
prueba1.txt //// 5
prueba2.txt //// 4000
prueba3.txt //// 22541
prueba4.txt //// 19874
prueba5.txt //// 44457
Someone to help me get this out?