+ Reply to Thread
Results 1 to 6 of 6

Macro which finds and copy's cells based on values in other cells.

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

    Macro which finds and copy's cells based on values in other cells.

    I have the below code which works perfectly copying the values in range Ix:Kx from worksheet BPrices to Fx:Hx in worksheet BData IF the cells in both worksheets matches each other. Sometimes the values that are in BPrices Ix, Jx and Kx are 1.00. So it would copy 1.00 into BData Fx, Gx and Hx. I want it so that if Ix, Jx and Kx contain the same 1.00 in each cell then not co copy those cells. Possible?
    Please Login or Register  to view this content.

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

    Re: Macro which finds and copy's cells based on values in other cells.

    Any ideas? I'd imagine it would require perhaps an If, Then function but can't write one that works at the moment.

  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 which finds and copy's cells based on values in other cells.

    This is my effort at the moment added in red font. If Ix =1.00 then I need it to skip copying that row and go to the next row.

    Please Login or Register  to view this content.

  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 which finds and copy's cells based on values in other cells.

    I think I'm close now but just getting a Next Without For Error and the below code in red is highlighted.

    Please Login or Register  to view this content.

  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 which finds and copy's cells based on values in other cells.

    Please Login or Register  to view this content.
    I can get this code to run now but it still copies and pastes if the value is 1.00. Any help?

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

    Re: Macro which finds and copy's cells based on values in other cells.

    Am I missing an Else after <> "1.00" ??

+ 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