+ Reply to Thread
Results 1 to 11 of 11

Find/Compare and Copy Certain Cells

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

    Find/Compare and Copy Certain Cells

    I have the below code which deletes the row in SheetM if a match is found. But I want to alter it so that if it finds a match in sheetLW then I want it to copy what is in col F,G,H in sheetLW and paste into sheetM col H,I and J.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find/Compare and Copy Certain Cells

    Untested code
    Please Login or Register  to view this content.

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

    Re: Find/Compare and Copy Certain Cells

    What If I want what is in col D in LW to be put into col C on sheetM as well as the above?

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

    Re: Find/Compare and Copy Certain Cells

    Your code pastes the values to the bottom of SHeetM and not in the same row as the match was found.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find/Compare and Copy Certain Cells

    Sorry,
    My offset was wrong, Should have been

    Please Login or Register  to view this content.
    Second request
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find/Compare and Copy Certain Cells

    Amended
    Please Login or Register  to view this content.

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

    Re: Find/Compare and Copy Certain Cells

    I'll test that now. Many thanks!
    Last edited by ScabbyDog; 02-28-2013 at 11:15 AM.

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

    Re: Find/Compare and Copy Certain Cells

    Works better. Almost there. Except with ( ms.Cells(c4.Row, 8).Resize(, 3) = c3.Offset(, 3).Resize(, 3) ) instead of copying and pasting whats in SheetLW into SheetM all it does is clear the contents of the cells in SheetM.

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find/Compare and Copy Certain Cells

    Hmmm! Column H and C of sheet LW should be blank

    Try this one then

    Please Login or Register  to view this content.

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

    Re: Find/Compare and Copy Certain Cells

    Not quite what I need. Very close. Perhaps I know why, can you please adjust it. I need M, N, O, P, Q and R in SheetLW to be put into SheetM G, H, I, J, K, L.

  11. #11
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Find/Compare and Copy Certain Cells

    Please Login or Register  to view this content.

+ 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