+ Reply to Thread
Results 1 to 2 of 2

Opening multiple files and importing into Excel

Hybrid View

  1. #1
    Registered User
    Join Date
    05-26-2011
    Location
    Newcastle
    MS-Off Ver
    Excel 2007
    Posts
    22

    Opening multiple files and importing into Excel

    Evening everyone,

    I have a number of .csa files, all of which I need to import into Excel. Each file I would like to import into the same workbook, however each on a different sheet.

    The files are stored in the following directory:

    C:/Analysis

    All .csa files are delimited and comma separated.

    I would like a macro which imports all of the files which are located in the directory onto separate sheets. I will have to perform this exercise a number a times, hence why I feel a macro would be so useful!

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Opening multiple files and importing into Excel

    Get started by doing the manual steps with the macro recorder: import one file and add a new sheet. Edit the code as required to remove unnecessary Selects etc. and use the Dir function to loop through the files in folder (searching should find many examples).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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