+ Reply to Thread
Results 1 to 4 of 4

VBA code to retain the rows with specific text.

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    VBA code to retain the rows with specific text.

    Hello all,
    I have around 6000 plus of data in A:A column.Format is something like below

    "I am in search of logic"
    "I didnt find"
    "I wont find"
    "You find it" etc

    I want a VBA code to retain the rows with "Search" word and delete rest all.

    Means, Row with "I am in search of logic" must remain.

    Also provide the code with multiple criterias if possible.

    Please help.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VBA code to retain the rows with specific text.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

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

    Re: VBA code to retain the rows with specific text.

    The attached example uses about 8400 rows , click the DelRows button to delete rows.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: VBA code to retain the rows with specific text.

    Works perfect..!!! Thank you very much...

+ 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. [SOLVED] Copy rows with specific text in specific column into specific sheet
    By Valemaar in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2014, 03:23 PM
  2. [SOLVED] Enhance existing code to hide rows between specific text
    By MissaLissa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2014, 03:20 PM
  3. Need to retain text format in code to import all csv files in folder
    By rebubula in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2014, 06:04 PM
  4. [SOLVED] Macro code to show only the rows with specific cell text in a particular column
    By Itachi1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2013, 01:33 PM
  5. [SOLVED] Macro code to Copy specific rows into specific columns
    By macrofan2012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-11-2012, 11:24 AM

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