+ Reply to Thread
Results 1 to 6 of 6

Merge Multiple CSV files to one XLS with multiple tabs

  1. #1
    Registered User
    Join Date
    02-23-2016
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    5

    Merge Multiple CSV files to one XLS with multiple tabs

    Hi guys,

    I tried the code below in Excel 2010, however, unfortunately, for me it does not seem to work.
    I changed the path to where my csv files are stored (i tested with different csv files). Whenever I run the macro, it seems to open up the cvs files from teh folder i mentioned in the code, that's all it does I do not see the CVS files being merged into one XLS files as different sheets.

    Please help

    Please Login or Register  to view this content.
    Last edited by waqar.b85; 02-23-2016 at 06:51 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Merge Multiple CSV files to one XLS with multiple tabs

    Click the # icon and paste code between tags.

  3. #3
    Registered User
    Join Date
    02-23-2016
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Merge Multiple CSV files to one XLS with multiple tabs

    Sorry, didn't realise i missed the code

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Merge Multiple CSV files to one XLS with multiple tabs

    The code should work though I would add a line after the ActiveSheet.Move line.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-23-2016
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Merge Multiple CSV files to one XLS with multiple tabs

    Hi Kenneth,

    I get a runtime error when i run the code with the line above.
    It says "automation error" at that line when i run it

    Thanks

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Merge Multiple CSV files to one XLS with multiple tabs

    You have something else going on I guess. It works fine for me.
    Please Login or Register  to view this content.
    You could check to see if the workbook was opened by:
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 02-24-2016 at 11:51 AM.

+ 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. [SOLVED] Merge Multiple CSV files to one XLS with multiple tabs
    By PY_ in forum Excel General
    Replies: 21
    Last Post: 05-07-2018, 07:19 PM
  2. [SOLVED] VBA code to merge multiple sheet with multiple tabs into one workbook in different tabs
    By Jagdev in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2015, 07:42 AM
  3. Merge Multiple CSV files to one XLS with multiple tabs
    By Punnurocks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2014, 09:08 PM
  4. [SOLVED] Merge multiple worksheet tabs into one in the same file
    By akshay8530 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2014, 12:53 PM
  5. Replies: 4
    Last Post: 07-06-2012, 01:55 PM
  6. Consolidating multiple files into one excel file with multiple tabs
    By Chemistification in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2012, 06:23 AM
  7. Merge multiple excel files into one with multiple sheets
    By madmanmarz in forum Excel General
    Replies: 3
    Last Post: 05-23-2012, 10:10 AM

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