+ Reply to Thread
Results 1 to 2 of 2

Copy rows to another sheet if the row contains a certain value

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    28

    Copy rows to another sheet if the row contains a certain value

    Hi all,

    I am using this code:

    Please Login or Register  to view this content.
    The code works very fine when value in column J is exact match. I would the macro to do the same also when a non exact text is found, for example copy all rows to Sheet6 if the value in column J in Sheet5 contains "A Cat B", or "bla bla Cat B bla bla" and not only the exact match which is "Cat B".

    When copying the rows to Sheet6 also the macro copy rows to the same row as it was in Sheet5, would it be possible to have the rows copied without any space between them in Sheet6.

    Many thanks for all your help.
    Last edited by ghostexcel; 01-18-2017 at 10:04 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy rows to another sheet if the row contains a certain value

    Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Copy rows in one sheet to the first available blank rows in another sheet
    By mahat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2015, 05:44 PM
  2. [SOLVED] Remove Rows based upon list of search terms, copy removed rows to new sheet
    By sam103329 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-19-2015, 08:47 PM
  3. Macro to copy rows based on moving date and paste the rows into an identical sheet
    By ivandc1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2014, 11:59 AM
  4. Remove Rows based upon list of search terms, copy removed rows to new sheet
    By sam103329 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2013, 10:32 PM
  5. Replies: 3
    Last Post: 01-30-2013, 04:32 PM
  6. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  7. [SOLVED] Copy row from sheet 1 to next row in sheet 2. delete from sheet 1 and move rows up
    By papabob1954 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-16-2012, 09:38 PM

Tags for this Thread

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