+ Reply to Thread
Results 1 to 6 of 6

copy worksheets from a couple of workbooks to other workbooks

  1. #1
    Forum Contributor
    Join Date
    11-20-2012
    Location
    stockholm
    MS-Off Ver
    Excel 2010
    Posts
    123

    copy worksheets from a couple of workbooks to other workbooks

    Hi,

    I have 25 files with certain worksheets that I need to move to 25 other files.

    Worksheet 1, 2, 3 and 4 in Workbook A needs to be moved to Workbook A-2014
    Worksheet 1, 2, 3 and 4 in Workbook B needs to be moved to Workbook B-2014
    Worksheet 1, 2, 3 and 4 in Workbook C needs to be moved to Workbook C-2014
    etc....

    Is there a way to do this with a macro?
    Preferably I would like to do this automaticly - i.e. runing the macro from a master file that

    1. Opens Workbook A copies the worksheets
    2. Open Workbook A-2014 paste the sheets
    3. Save and close Workbook A-2014
    4. Close workbook A without saving

    then doing the same for Workbook B, etc.

    Thanks!!
    //Martin
    Last edited by masben; 06-30-2014 at 02:04 AM. Reason: solved

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy worksheets from a couple of workbooks to other workbooks

    Worksheet 1, 2, 3 and 4 in Workbook A needs to be moved to Workbook A-2014 Worksheets 1, 2, 3 and 4???
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    11-20-2012
    Location
    stockholm
    MS-Off Ver
    Excel 2010
    Posts
    123

    Re: copy worksheets from a couple of workbooks to other workbooks

    Quote Originally Posted by xladept View Post
    Worksheet 1, 2, 3 and 4 in Workbook A needs to be moved to Workbook A-2014 Worksheets 1, 2, 3 and 4???
    Hi xladept,

    Thanks for showing an intrest!

    Little more detailed....

    In Brasil.xlsm I have diffrent worksheets/tabs containg information on sale forcast, pipline customers, budget figures, regional directors comments, gross margins, etc...

    For next years budget I have made up a new file Brazil 2015.xlsm

    This file will contain a new forecast sheet but the rest should for now be exactley the same. The forecast sheet has already been set up in the new file Brazil 2015.xlsm and the other 4 sheets needs to be copied from Brazil.xlsm.

    Except for Brazil there is 24 other files/countries that needs to be set up the same way...

    Hope this makes it clearer - othervise just ask again..

    Cheers,
    Martin

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy worksheets from a couple of workbooks to other workbooks

    Try this:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-20-2012
    Location
    stockholm
    MS-Off Ver
    Excel 2010
    Posts
    123

    Re: copy worksheets from a couple of workbooks to other workbooks

    Quote Originally Posted by xladept View Post
    Try this:

    Please Login or Register  to view this content.
    Thanks Xladept!

    This looks good - I'll think I can use it Great!
    //Martin

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: copy worksheets from a couple of workbooks to other workbooks

    You're welcome and thanks for the rep!

+ 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. Copy selected worksheets between workbooks onto named worksheets
    By AndrewSimpson87 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2014, 03:25 PM
  2. Copy/Paste Range of Data from Multiple Workbooks/Worksheets to Master Workbook/Worksheets
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 08:21 PM
  3. linking workbooks:couple days
    By allison15 in forum Excel General
    Replies: 1
    Last Post: 09-28-2010, 08:48 AM
  4. A couple of strange things with macro workbooks
    By Bibble89 in forum Excel General
    Replies: 1
    Last Post: 12-26-2009, 08:58 PM
  5. copy worksheets to new workbooks
    By CThai in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2007, 05:40 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