swilson2006
New Member
- Joined
- May 25, 2012
- Messages
- 11
Hi there
I hope someone can help with a small macro.
The macro is to:
1. Look inside a specified folder at all csv files
2. Look at column G of the csv file which contains a date and time in this format 28/02/2018 08:31:10 and take the date from this the second row and then create a worksheet in a pre-set XLSX file with the data as the worksheet name. Copy all the CSV data to the XLSX file and then close all files and move on to the next file.
3. If the worksheet already exists then move on to the next file until all files have been processed.
4. Insert a column before column C called "PYMT TYPE".
5. Close the XLSX file and CSV files.
I would like it so that it does not duplicate a worksheet and just skips it.
Basically I am creating an XLSX file from daily worksheet so I can combine all the data in the CSVs into one file.
I appreciate your help.
I hope someone can help with a small macro.
The macro is to:
1. Look inside a specified folder at all csv files
2. Look at column G of the csv file which contains a date and time in this format 28/02/2018 08:31:10 and take the date from this the second row and then create a worksheet in a pre-set XLSX file with the data as the worksheet name. Copy all the CSV data to the XLSX file and then close all files and move on to the next file.
3. If the worksheet already exists then move on to the next file until all files have been processed.
4. Insert a column before column C called "PYMT TYPE".
5. Close the XLSX file and CSV files.
I would like it so that it does not duplicate a worksheet and just skips it.
Basically I am creating an XLSX file from daily worksheet so I can combine all the data in the CSVs into one file.
I appreciate your help.