I have a bunch of CSV files in one folder. The aim is to copy all the data (excluding the header row) from each file and collate them into one. Below is the code I'm currently using, the problem is the code only copies data from one file then ends completely ignoring all other files in the folder
I believe that the problematic line is:
I've come to this conclusion because belovw is the code that us to be in use and my code would loop through very folder. Though since making this change it no longer does.
The reason I changed the working code is because I no longer required only certain columns, but instead I need all columns to be copied into the file.
I don't understand why the range change has stopped my program from working as expected
. A solution and explanation (if possible) would be much appreciated.
Bookmarks