+ Reply to Thread
Results 1 to 4 of 4

Macro to Copy Rows if cell value equals

  1. #1
    Registered User
    Join Date
    07-05-2009
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro to Copy Rows if cell value equals

    I have TWO worksheets. One named "td" the other named "archive"

    I need to copy an entire row from sheet "td" if a cell in column R has the word "archive" in it. (Starting in row 2 of column R and continuning thru R500).

    The copied row needs to be paste with format to worksheet "archive" starting in row 2. I need all row paste to append to the "archive" sheet from this point on, everytime i run the macro. Not starting over on row 2 each time.

    Once the paste is done with the row, I need the macro to go back the "td" worksheet and delete the row completely that it just copied.

    Please help!!!
    Last edited by oakleyfoy; 09-03-2010 at 09:14 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Need Help with Copy Rows Macro

    Hi oakleyfoy,

    Welcome to the forum!!

    Unfortunately until you change your thread title I doubt anyone will respond to you for as it currently stands it doesn't comply with Rule 1 (refer here) of the forum's guidelines.

    Once the title is changed I'm sure you'll get a response.

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Macro to Copy Rows if cell value equals

    Hi oakleyfoy,

    Thanks for changing the title - it really does help others searching the web if they have a similar problem.

    Let me know how this goes:

    Please Login or Register  to view this content.
    Regards,

    Robert

  4. #4
    Registered User
    Join Date
    02-12-2011
    Location
    liverpool england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to Copy Rows if cell value equals

    delete rows where one cell value equals another cell value

    --------------------------------------------------------------------------------
    Hi

    I am trying to match one column with another then delete the matching row.

    e.g.

    cell number = cell text then delete this row . These criteria both the text and number are variable,

    The problem is that the text has a set number of values i.e.Red,Green,Brown,Black but the associated numeral values can include up to 500 numbers.

    Therefore I'm after some VBA that I can run to do the following:

    For a cell which has any number anywhere between 1 - 500, delete any row which has a cell which also includes either Red,Green,Brown,Black

    I know guys I don't ask for a lot ...but this ones got me beat

    Thanking anybod in advance...x : )

+ 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