+ Reply to Thread
Results 1 to 7 of 7

VBA Code for Delete Entire Row with Certain Text

  1. #1
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    VBA Code for Delete Entire Row with Certain Text

    I have a data in column "A3:Y500",

    Data in column "Y"If any of the cells contains "CHECK" I need it to delete the entire row.

    Please give me a VBA code For that.
    My English is very poor, so please be patient >_<"

    Thanks & Regards.
    hkbhansali

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

    Re: VBA Code for Delete Entire Row with Certain Text

    Try this example....

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: VBA Code for Delete Entire Row with Certain Text

    Hi,Davesexcel
    thanks for reply,but there is error in above code,when i run macro
    the "Rng.SpecialCells(xlCellTypeVisible).EntireRow.Delete" is highlighted with yellow mark!!
    pls check

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

    Re: VBA Code for Delete Entire Row with Certain Text

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: VBA Code for Delete Entire Row with Certain Text

    As per your requirement i am attaching sample sheet

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

    Re: VBA Code for Delete Entire Row with Certain Text

    Just click the button and it does what it should do.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    398

    Re: VBA Code for Delete Entire Row with Certain Text

    Hi,
    davesexcel,
    its work, thanks for help

+ 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. Code to delete entire row
    By smusyaju in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 12:36 PM
  2. VBA search and delete entire row in DataCapture VBA code - HELP
    By skop89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2014, 07:09 AM
  3. [SOLVED] If Or statement to check cell text and delete entire row if text is found
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2013, 11:46 AM
  4. need to single out text in row A and delete entire row if text is present
    By pomerann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2013, 03:51 PM
  5. Macro code to delete entire row if the cell in column C = 0
    By glock9mm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2013, 02:50 PM

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