Results 1 to 2 of 2

delete rows based on fill color

Threaded View

schueyisking delete rows based on fill... 08-21-2008, 09:54 AM
Rubeus_Hagrid delete rows based on fill... 08-25-2008, 10:28 AM
  1. #2
    Registered User
    Join Date
    07-18-2008
    Location
    India
    Posts
    68

    delete rows based on fill color

    Public Sub DeleteCells()
    Range("a1").Select
    Do While ActiveCell.Value <> ""
    If Selection.Interior.ColorIndex = xlNone Then
    ActiveCell.EntireRow.Delete
    End If
    ActiveCell.Offset(1, 0).Select
    Loop
    End Sub
    Last edited by VBA Noob; 08-25-2008 at 11:18 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. macro: changing cell color based on count in cell
    By Vbort44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2008, 07:28 PM
  2. Delete rows based on values from worksheet
    By dc6463 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2008, 10:16 AM
  3. fill color and font color no longer work!
    By sflass94133 in forum Excel General
    Replies: 15
    Last Post: 08-21-2007, 11:44 AM
  4. color fill rows?
    By tgs23lax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2007, 03:08 PM
  5. Replies: 2
    Last Post: 03-01-2007, 04:51 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