+ Reply to Thread
Results 1 to 2 of 2

delete a row based on color of cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Toronto,Canada
    MS-Off Ver
    Excel 2010
    Posts
    60

    delete a row based on color of cell

    Hi every body,

    I have a worksheet "Order", it has a table from A-M column and count down to 50,000 row. I'm looking to a macro to delete the entire row if the cell in column"B" has word "Paid".

    I tried to use this one but it did not work

    HTML Code: 
    Please, as I'm a beginner try to let me know where I should insert the Macro

    Thank you in advance for your help and support

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: delete a row based on color of cell

    "" is missing.

    If Cells(n, 2).Value = "Paid" Then Cells(n, 2).EntireRow.Delete

+ 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. Need macro to delete rows based on the color of cell in column A
    By cindywylie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-10-2014, 05:50 PM
  2. Delete Columns and rows based on cell fill color
    By JackW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2014, 01:58 PM
  3. [SOLVED] Delete row based on red color font
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2014, 10:02 AM
  4. Delete row based on cell FORMAT (color, font, etc) (not based on cell value)
    By trobey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2012, 10:39 AM
  5. Re: Delete rows based on duplicate and cell color
    By Jsin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2010, 08:38 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