+ Reply to Thread
Results 1 to 5 of 5

Macro to find and copy/replace

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Macro to find and copy/replace

    I want a macro to look at the data in say Sheet1 and compare it to Sheet2. There will be a bunch of data and each row of data will have a date in column B. I want a macro that will add whatever is missing in sheet1 from the bottom of the list of data to be added from the data in sheet2. So for example, sheet1 may have 500 rows of data with the last date the 1st Dec 2012. I want the macro to look at sheet2 for the date 2nd Dec 2012 then copy to the end of the data in sheet2 and then paste it to the bottom of sheet1.

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

    Re: Macro to find and copy/replace

    Attach a sample workbook.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Macro to find and copy/replace

    Attached is the sample. So I want everything that is past the last date in sheet1 which is 12/11 to be copied from sheet 2 to the bottom of sheet1. So in this sample, everything from the 13/11 onwards in sheet 2 needs to be copied and pasted to the bottom of sheet1. But these dates can change obviously so a code would need to know this.




    sample.xlsm

  4. #4
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Macro to find and copy/replace

    Any ideas?

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Macro to find and copy/replace

    I'm completely lost with this one. Any ideas at all would be appreciated!

+ 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