+ Reply to Thread
Results 1 to 7 of 7

MACRO to Merge Sheets

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    MACRO to Merge Sheets

    Hello, I'm very to new macros and am trying to find tweak the one below. It's not quite working properly.
    I want to merge the data from the first three worksheets of the attached file to the last worksheet called "Merged Data". Appreciate the help.

    Thanks!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: MACRO to Merge Sheets

    Seems to work for me. What is your issue? What is not correct about the way it processes.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: MACRO to Merge Sheets

    Hi Alan, it's not copying the data from the blue worksheet (2nd one).

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: MACRO to Merge Sheets

    It assumes you are entering data in column A
    if you arent maybe

    Please Login or Register  to view this content.
    should look at J or another column eg

    Please Login or Register  to view this content.
    Edit : added the "lr4 ="
    Last edited by scottiex; 04-06-2017 at 07:25 PM.

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: MACRO to Merge Sheets

    I still can't get this to work.
    Can you tell me which part of the code to edit?

    Thanks....sorry but I'm not good at macros at all.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: MACRO to Merge Sheets

    I think there was another error in your macro - you were using the last row of sheet 1 on sheets 2 and 3
    anyway - On the assumption that column J ALWAYS has data see the below

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: MACRO to Merge Sheets

    if your information isnt a square data block. ie all cells are fill in for every row so you have left with sometimes blank cells on last row (like in your example)
    try another method to find last row

    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Merge the three sheets by a using macro
    By Rajendra_kodavaty in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2016, 06:52 AM
  2. [SOLVED] MACRO - Merge 2 Sheets
    By idontexcelinexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2016, 09:19 PM
  3. [SOLVED] MACRO to merge two sheets
    By idontexcelinexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2016, 07:03 PM
  4. [SOLVED] Macro to merge sheets based on sheet name
    By dobracik in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-04-2015, 08:35 PM
  5. [SOLVED] Macro to merge multiple sheets into one
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 12-19-2013, 01:14 AM
  6. Macro to merge 2 sheets to one and keep header row
    By Capcel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-30-2013, 08:56 AM
  7. [SOLVED] Macro to Merge Sequential Numbered Sheets
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2012, 08:12 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