+ Reply to Thread
Results 1 to 4 of 4

how to save multiples copies of a workbook

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    17

    how to save multiples copies of a workbook

    Hi There,

    I need help in writing a macro which copies data from a source file paste it in another file and save that file as a separate workbook. Data in the source file is stored in two columns with multiple rows. Macro needs to copy data in each row of both columns, paste it in a workbook and save a copy of it as a separate file. This process needs to continue for each row.

    Let me know if any further details are required.

    Regards

  2. #2
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: how to save multiples copies of a workbook

    So I understand you want a number or workbooks, one per row in the source, each book containing only two cells taken from the 2 source columns.
    Please Login or Register  to view this content.
    (Untested)

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: how to save multiples copies of a workbook

    Thank you for the above code, i just need one more help. I need to prompt the user to select a folder once and save all the processed files in that folder one after the other. can you guide me on how to code this.

    Thanks in advance

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: how to save multiples copies of a workbook

    It possibly depends on how you develop the filenames for each file.
    In principle you can do chdir(foldername) once you've done the initial prompt, then if you don't include a path name in the saveas, they will all go thee.
    Here's one approach:
    Please Login or Register  to view this content.

+ 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