+ Reply to Thread
Results 1 to 8 of 8

Copy Range of Data from multiple worksheets into one worksheet (II)

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Copy Range of Data from multiple worksheets into one worksheet (II)

    Hello, I had previously posted a similar thread and received help to generate the code below.

    It takes a copy of B9:O58 from multiple worksheets and pastes the resulting data in one worksheet.

    It does work fine but for a reason I don't understand, it is introducing 4 blank columns in the middle of the merged data rather than copying/pasting the data in exactly the same column format.

    Please could someone help me to correct this unhelpful feature?

    Thank you,

    Jess


    Please Login or Register  to view this content.
    Last edited by Brontosaurus; 12-13-2020 at 11:42 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    B to O is 14 columns, you are only resizing 10 columns

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    See if matching the size of the range helps.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  5. #5
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    Hi, thank you.

    It gives the same result ie. introduces 4 blank column (E/F/G/H)?

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    Attach a sample

  7. #7
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    226

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    Hi, again thank you. On two fronts.

    First, I've just spent 20 minutes creating the sample but this was a valuable thing to do as it helped me to realise that one field of data is actually 5 merged columns. There, the macro is doing exactly what it is supposed to do.

    Thank you very much to both for your help again.

    Best wishes,

    Jess

  8. #8
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy Range of Data from multiple worksheets into one worksheet (II)

    VBA and merged cells do not get along together very well. Thanks for the feedback.
    Regards, JLG

+ 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. [SOLVED] Copy Range of Data from multiple worksheets into one worksheet
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2020, 08:11 AM
  2. [SOLVED] Copy and Paste Data from Multiple Worksheets into one Worksheet
    By Cardan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-22-2019, 05:02 PM
  3. Replies: 0
    Last Post: 03-03-2016, 10:18 AM
  4. Macro to copy data from multiple worksheets into 1 worksheet
    By snuffnchess in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2015, 04:59 PM
  5. Replies: 12
    Last Post: 06-29-2014, 03:51 AM
  6. Copy range from multiple worksheets to another worksheet without overwriting
    By MissaLissa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-28-2014, 09:01 AM
  7. 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

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