+ Reply to Thread
Results 1 to 2 of 2

Change code of Macro that joins CSV files

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Change code of Macro that joins CSV files

    Hi All,
    Lets try it different.
    So this is the code I have to join data from several CSV files:

    Please Login or Register  to view this content.
    Now I want to change this part:

    Please Login or Register  to view this content.
    I do not want to browse for the folder but I want to tell the macro were to look.
    With code like this:

    Please Login or Register  to view this content.
    But just swap one piece of code with the other just won't do it.
    Can someone please assist in how to do this? Thanks!
    I included some CSV files to test with.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Change code of Macro that joins CSV files

    Ok....adter 1,5 day I seem to have fixed it.
    And, as usual, the solution looked to be very simple.....
    I changed the part of code which lets you browse to a folder with this:

    Please Login or Register  to view this content.
    So block (or remove) the set oApp and the set oFolder lines and make the 'foldername' statement variable (or fixed but I will make it variable later).

    Hope this helps others with a similar problem

+ 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. Macro code for moving between files
    By Shift-4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 08:53 PM
  2. SQL Multiple Joins
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2011, 12:33 PM
  3. change / modify VBA code in other files on the network
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2011, 12:23 PM
  4. Macro code to split a sheet into new files
    By chenelas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2009, 09:19 PM
  5. Joins in excel
    By fralo in forum Excel General
    Replies: 5
    Last Post: 03-03-2008, 12:24 PM

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