View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default code for hiding rows-(coloured)

Sub Test()
Dim rw As Range

For Each rw In ActiveSheet.UsedRange.Rows
If rw.Interior.ColorIndex = 37 Then 'Pale blue
rw.Hidden = True
End If
Next rw

End Sub

Go to the VB IDE (alt-F11), insert a code module (InsertModule), and paste
the code in.

Then in excel ToolsMacroMacros... and select Test and Run.

--
HTH

Bob Phillips

"srinivasan" wrote in message
...


Hello,

I want to use the cell colour with pale blue(not font colour). Expecting
your kind response.