Results 1 to 13 of 13

Excel Automation For reading data from .csv files in a folder

Threaded View

  1. #1
    Registered User
    Join Date
    05-08-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Exclamation Excel Automation For reading data from .csv files in a folder

    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.
    Last edited by nalayak21; 06-08-2011 at 10:03 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1