LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Delete values colored cells

Hi Mark

I read your post incorrectly. This removes the values of those cells
which are yellow in Column A. Change the column to suit.

Marcus

Sub DeleteYellow()

Dim Lw As Long
Application.ScreenUpdating = False
Lw = Range("A" & Rows.Count).End(xlUp).Row

For i = Lw To 2 Step -1
If Range("A" & i).Interior.ColorIndex = 6 Then
Range("A" & i).Value = ""
End If
Next i

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to delete the values in some cells, Skip[_2_] Excel Worksheet Functions 5 November 6th 09 07:26 PM
Delete only specific fill colored rows? >Excel Excel Worksheet Functions 1 August 1st 08 05:08 AM
Macro do delete values in cells Esrei Excel Discussion (Misc queries) 1 April 14th 05 04:01 PM
delete values in cells JH Excel Programming 4 January 31st 05 12:53 PM
Cell right next to colored cells is automatically colored on entering a value Johan De Schutter Excel Programming 6 September 12th 03 05:31 PM


All times are GMT +1. The time now is 09:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"