Extracting columns from CSV file and importing into Excel

Discussion in 'Programming' started by Named, Sep 12, 2009.

  1. #1
    I have an Excel spreadsheet that only uses about 7 columns of data but I need to extract these 7 columns from a CSV file that has about 50 columns. Do I need to write a macro to extract these 7 columns and then place them in the correct order? It is something I'll need to do at least once per day. Any help would be greatly appreciated.
     
    Named, Sep 12, 2009 IP
  2. ohteddy

    ohteddy Member

    Messages:
    128
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #2
    You may want to ask this question on stackoverflow, I'm sure you will get lots of insightful responses. My suggestion however is keep both sources, your master (currently xls) and your source (csv) in csv format. This way you can simply write a script to extract those 7 columns and append them to your master source.
     
    ohteddy, Sep 13, 2009 IP