Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
I need a code that finds cells on the current worksheet that are currently set with an interior colour index of 36, and reset them to be xlnone. By doing so I'm getting rid of standard shading but keeping user applied colours. I tried to do the following but it doesn't apply to all cells??? Sub NoYellowshading() Dim lastrow, crow As Long Dim r As Range lastrow = ActiveSheet.Cells(Rows.Count, "a").End(xlUp).Row Range("A1:BY" & lastrow).Select If Selection.Interior.ColorIndex = 36 Then Selection.Interior.ColorIndex = xlNone End If End Sub Any help greatly appreciated. -- Thank for your help BeSmart |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
current date it should intimate cheques due by colour change | Excel Discussion (Misc queries) | |||
change a cell background colour to my own RGB colour requirements | Excel Discussion (Misc queries) | |||
Interior borders | Excel Discussion (Misc queries) | |||
Conditional Format with VBA - Interior Colour of cell based on value from in-cell dropdown | Excel Programming | |||
Is ther a way to change the interior.colorindex of multiple rows | Excel Programming |