Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have wrote a script that validates the values of different cells. When it detects a problem it changes the background colour of the offending cell. To reset the background colour back to it's original colour I've added this script to the worksheet: Private Sub Worksheet_SelectionChange(ByVal Target As Range) With Target.Interior If .ColorIndex = 7 Then .ColorIndex = 36 End If End With End Sub This works on the cells that aren't merged but doesn't on those that are. How do I change the color ot the merged cells? Thanks in advance Rich |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to change background color, font color and remove/ add bo | Excel Discussion (Misc queries) | |||
Range name title appearing as background in merged cells | Excel Discussion (Misc queries) | |||
change background color in cells | Excel Worksheet Functions | |||
how can I conditionally change font color, or background color? | Excel Worksheet Functions | |||
Change font and background color of several cells based on result of a formula | Excel Discussion (Misc queries) |