Hi all
I'm wondering if someone could help me please with vba code.
Have multiple.csv files (24 per day) on the same folder and would like to extract data into a Master file.
The data from each ,csv file needs to be pasted into the Master file on each worksheet.
Each day we'll have 24.csv files and a master file I.e.: 21062017 ; 22062017...
Folder: C:\PA
.csv files :
2017-06-21 Batch Yield Report 0600-0659.csv
2017-06-21 Batch Yield Report 0700-0759.csv
Master file: Master.xlsm
So, on 21/06/17 the data from file name:
2017-06-21 Batch Yield Report 0600-0659.csv, needs to be pasted into Master 21062017 Sheet1 ;
2017-06-21 Batch Yield Report 0700-0759.csv, needs to be pasted into Master Sheet2 ;
on 22/06/17 the data from file name:
2017-06-22 Batch Yield Report 0600-0659.csv needs to be asted into Master 22062017 Sheet1 and so on
I'm using a code, I use on another project, however cpoies all files into sheet1 regardless name or date, tried to manipulate the code to achive this and add "& T1&" (for date as part of the file name) without success.
Any help, sugestion will be appreciated.
Thanks in advance.
R
I'm wondering if someone could help me please with vba code.
Have multiple.csv files (24 per day) on the same folder and would like to extract data into a Master file.
The data from each ,csv file needs to be pasted into the Master file on each worksheet.
Each day we'll have 24.csv files and a master file I.e.: 21062017 ; 22062017...
Folder: C:\PA
.csv files :
2017-06-21 Batch Yield Report 0600-0659.csv
2017-06-21 Batch Yield Report 0700-0759.csv
Master file: Master.xlsm
So, on 21/06/17 the data from file name:
2017-06-21 Batch Yield Report 0600-0659.csv, needs to be pasted into Master 21062017 Sheet1 ;
2017-06-21 Batch Yield Report 0700-0759.csv, needs to be pasted into Master Sheet2 ;
on 22/06/17 the data from file name:
2017-06-22 Batch Yield Report 0600-0659.csv needs to be asted into Master 22062017 Sheet1 and so on
I'm using a code, I use on another project, however cpoies all files into sheet1 regardless name or date, tried to manipulate the code to achive this and add "& T1&" (for date as part of the file name) without success.
Any help, sugestion will be appreciated.
Thanks in advance.
R