+ Reply to Thread
Results 1 to 3 of 3

Split a File to Multiple files with Selected columns into CSV format

  1. #1
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Split a File to Multiple files with Selected columns into CSV format

    Hi,

    Would like to split a files into multiple files of 1700 rows which is working in current VBA code attached which I have found in the website.

    Would like to makes changes in the VBA :
    1) Populate selected columns of A to G only in the split files
    2) Adjust column width automatically
    3) Save in csv format (Currently VBA saving in xls file)

    I'm new to VBA and would like to have your assistance in amending the VBA code.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Split a File to Multiple files with Selected columns into CSV format

    You could try with this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Forum Contributor
    Join Date
    05-22-2015
    Location
    Malaysia
    MS-Off Ver
    MS365
    Posts
    225

    Re: Split a File to Multiple files with Selected columns into CSV format

    Hi,
    I have Test the data. It working great for csv format and the column width.
    I have column until column H. However,would like to populate selected data from column A until column F only.

    Would like your advise on how to go about adding into the attached VBA as well? Thank you.

+ 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. Split a CSV file into multiple files
    By mikemontelongo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-15-2015, 12:37 AM
  2. [SOLVED] TO split worksheets in a single file to multiple files
    By Excel Dumbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2015, 02:39 AM
  3. [SOLVED] Macro to copy selected columns and convert the file into multiple csvmsdos files
    By tanay.vinod in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2014, 03:52 AM
  4. [SOLVED] VBA to split 1 file into multiple files
    By Maxy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-05-2013, 01:14 PM
  5. Split single Excel file into multiple files
    By Michael_O in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2012, 06:27 AM
  6. Split a file into multiple files
    By bkormoski in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-09-2012, 03:38 PM
  7. Split excel file into multiple files by lines
    By roger212 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2011, 04:46 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