+ Reply to Thread
Results 1 to 3 of 3

Importing multiple CSV files into one excel worksheet (Mac Excel)

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    Tokyo, Japan
    MS-Off Ver
    MS Office for Mac
    Posts
    2

    Importing multiple CSV files into one excel worksheet (Mac Excel)

    Hi,

    Im all new to VBA, and I have been trying to figure out how to merge multiple CSV files onto one excel file.
    I've consulted other help pages etc... but on success. I use a MS Office for MAC.

    I have 23 separate CSV files with the same formatting

    I want to:
    1) Import the text data into excel (using the External Data text import tab)
    2) The text should be imported in delimited form with the Japan (Mac OS) unicode as file origin
    3) The delimiter is Comma only
    4) I want each CSV FILE to correspond to a new worksheet (tab) and ideally the name of the tab should correspond to the CSV file.
    5) There are a select columns which I want to delete which is universal across the CSV files

    I appreciate all your help .

    Thank You!

  2. #2
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Excel 2016
    Posts
    190

    Re: Importing multiple CSV files into one excel worksheet (Mac Excel)

    Shibatat,
    I don't have a Mac, but this is how I do it for my PC.
    Please Login or Register  to view this content.
    Before accessing the text file you'll need to set up a reference enabling access to the file system. You do this by clicking the tools tab in the VBA code window and selecting the Microsoft Scripting Runtime library. Since you are using a Mac, maybe there is a Scripting Runtime libary for the Mac. I suspect that the code will not work, but maybe it is a start!

    redsab
    Last edited by redsab; 08-23-2014 at 07:36 AM.

  3. #3
    Registered User
    Join Date
    08-23-2014
    Location
    Tokyo, Japan
    MS-Off Ver
    MS Office for Mac
    Posts
    2

    Re: Importing multiple CSV files into one excel worksheet (Mac Excel)

    Thank You for your reply.

    I get a "compile error user-defined type not defined" error...
    Ill further investigate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Importing Multiple txt files in excel
    By celiojr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2013, 11:00 AM
  2. Replies: 0
    Last Post: 11-27-2012, 01:43 PM
  3. Importing multiple excel files into 1
    By vascobmcastro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2010, 01:29 PM
  4. Replies: 1
    Last Post: 01-27-2010, 03:06 AM
  5. [SOLVED] Importing from multiple Excel files
    By Tired of wasting time in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 04:05 PM

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