+ Reply to Thread
Results 1 to 4 of 4

Copy data from single workbook into multiple .csv files

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Copy data from single workbook into multiple .csv files

    Hello,

    Can anyone help me create a macro to do the following

    Open masterworkbook.xls in a specific directory (e.g my documents)
    Copy column A on Sheet1
    Copy column A on Sheet2

    Open data1.csv located in the same directory as the masterworkbook.xls
    Paste column A from Sheet 1 (masterworkbook.xls) into Column F in data1.csv
    Paste column A from Sheet 2 (masterworkbook.xls) into Column N in data1.csv

    Close data1.csv

    The macro then needs to cycle through the remaining columns (1000 in total) in master workbook.xls copying them into column F and N in the respective .csv files (1000 in total)

    I.e. the next part would look like

    Open masterworkbook.xls
    Copy column B on Sheet1 (i.e. next column)
    Copy column B on Sheet2 (i.e. next column)

    Open data2.csv located in the same directory (i.e. next .csv)
    Paste column B from Sheet 1 (masterworkbook.xls) into Column F in data1.csv
    Paste column B from Sheet 2 (masterworkbook.xls) into Column N in data1.csv

    Could anyone be of assistance, let me know if you need any sample files
    Last edited by Savan87; 01-11-2013 at 09:44 AM.

  2. #2
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Update multiple .csv files using masterworkbook

    Here is a sample .csv file, saved as a .xls

    Here is a link to a sample masterworkbook.xls file

    http://www.sendspace.com/file/aj0tfn
    Attached Files Attached Files
    Last edited by Savan87; 01-11-2013 at 07:54 AM.

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy data from single workbook into multiple .csv files

    Updated description to better explain problem, any assistance would be greatly appreciated

  4. #4
    Registered User
    Join Date
    02-01-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy data from single workbook into multiple .csv files

    Still struggling with this, any more info that would be of use?

    Thanks for any help you can offer

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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