+ Reply to Thread
Results 1 to 3 of 3

Copy ranges from multiple sheets and paste them in another workbook

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Copy ranges from multiple sheets and paste them in another workbook

    I got a worksheet which has a button that the user can click. When he does it, I want to copy the range A10 down from 'Sheet1' until it hits a blank cell and paste it starting at B24 in a new workbook which will be opened when the user clicks the button. After this, I want to copy the range A10 down from 'Sheet2' until it hits a blank cell and paste it starting at the first blank cell after B24 in the destination workbook and so on until 'Sheet5'.

    So we got:

    - Source workbook with 5 sheets
    - Destination workbook with 1 sheet
    - Values to be copied always start at A10 in each one of the 5 sheets.
    - Values must be copied until they hit a blank cell
    - First range pasting in the destination workbook starts at B24
    - Second range pasting in the destination workbook should start at the first blank cell after B24
    - Special paste (values only)

    Sample:

    Source Workbook - Sheet1
    A10 Blue
    A11 Red
    A12 Green
    A13 Orange

    Source Workbook - Sheet2
    A10 Purple
    A11 Yellow
    A12 Black

    Destination Workbook - Sheet1
    B24 Blue
    B25 Red
    B26 Green
    B27 Orange
    B28 Purple
    B29 Yellow
    B30 Black

    And so on til Sheet5.

    I have this code which works for one sheet only. How can I make it work for 5 sheets?

    Please Login or Register  to view this content.
    Any help is very appreciated. Thank you so much.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Copy ranges from multiple sheets and paste them in another workbook

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-26-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Copy ranges from multiple sheets and paste them in another workbook

    Hi, Bernie. Thanks for your reply.

    Working fine!

+ 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 same range from multiple sheets and paste into one sheet of active workbook
    By jadown in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2013, 01:41 PM
  2. Need to copy ranges from multiple sheets then paste to sheet under specific headers
    By the duke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2013, 12:17 AM
  3. [SOLVED] Macro to Copy range from multiple sheets and paste in new Workbook
    By cameron.beyers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 01:00 PM
  4. [SOLVED] Conditionally Copy Cells from Multiple Sheets and Paste in Another Workbook
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2012, 09:22 AM
  5. Copy paste ranges from multiple sheets
    By Woody1313 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2006, 11:40 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