Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oh, the heck with it...Yes...
Sub test() Dim cell As Range For Each cell In Selection If cell.Interior.ColorIndex = 6 Then cell.ClearContents End If Next cell End Sub 6 is bright yellow 36 is light yellow or using Range Names... Sub test() Dim cell As Range For Each cell In Range("TEST") If cell.Interior.ColorIndex = 6 Then cell.ClearContents End If Next cell End Sub "Paul H" wrote: Can a macro be written that would clear the contents from all yellow cells in a worksheet? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro for clearing cells | Excel Discussion (Misc queries) | |||
Clearing a cell value after a set time period - Macro?? | Excel Discussion (Misc queries) | |||
Macro for clearing cell contents | Excel Discussion (Misc queries) | |||
Clearing All check boxes using Macro | Excel Discussion (Misc queries) | |||
macro clearing cell content | Excel Programming |