+ Reply to Thread
Results 1 to 4 of 4

Multiple CSV file import into a single worksheet in current workbook

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Question Multiple CSV file import into a single worksheet in current workbook

    Hello,
    Trying to import multiple CSV files in a directory folder into a single worksheet skipping the first line in each file. Currently have it set to open all csv files in a folder but i only have it set to open each csv file and copy it into a new workbook into seperate sheets. Here's my code... any help will be greatly appreciated. Thank you in advance!

    Please Login or Register  to view this content.
    Moderator's Edit: Use code tags when posting code. To do so in future, select the code and click on the # icon at the top of your post window.
    Last edited by arlu1201; 11-18-2012 at 09:19 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Multiple CSV file import into a single worksheet in current workbook

    So do you want the code to copy the data to separate sheets or into 1 sheet of the same workbook?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Multiple CSV file import into a single worksheet in current workbook

    Copy the data into 1 sheet in the same workbook

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Multiple CSV file import into a single worksheet in current workbook

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

+ 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