Here is what I want to accomplish. I have no coding experience and would like someone to help me in completing this task, please !
Everyday (at 0800/1200/1700 Hrs) I receive reports in .csv format and when I open the files in Excel, they are neatly formatted with the data but the data is huge. The information I wanted is under E2:F14 range. Also the file I receive will have the name in the format: current_201106070800.csv (current_YYYYMMDDHHHH.csv). I have these files for the past 6 months so mining the data is not a option for me.
Now, I would like to gather the information from all the reports I receive and house in a master excel sheet (A Master Data Template) with a macro which can:
- Scan the folder for new files and if there are any new files found grab the information (from the range E2:F14 range) from the new file and copy to the master excel file. (This is where I need help! )
I'm looking for a output in the master excel sheet something like this:
-----A------------B--------------------------C
1---Period------201106070800-------201106071200
2---Data1-------7890--------------------89098
3---Data 2------890878-----------------94580
4---Data 3------898090-----------------902850928
So, B1 is the file name from where the data is extracted, B2:B4 is the data copied from the file to master excel sheet. Same goes for C1:C4
I can manually copy the files everyday from my email to the folder and open the master excel sheet and run the macro to receive the data.
The next tasks I will be able to complete by myself, to refine the data further and generate pivot tables/reports and stuff.
Can someone please share the code if already available. I would appreciate any help in complete the macro task.
Thanks in advance. Have a nice day.
Bookmarks