Home |
Search |
Today's Posts |
#1
|
|||
|
|||
how can I extend the condictional format to nine conditions?
I need to move only the color of a cell into another cell.
|
#2
|
|||
|
|||
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("A1:H10")) Is Nothing Then With Target Select Case .Value Case 1: .Interior.ColorIndex = 3 Case 2: .Interior.ColorIndex = 5 Case 3: .Interior.ColorIndex = 10 'etc. End Select End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. -- HTH Bob Phillips "Jaime Z Prat Ramon" <Jaime Z Prat wrote in message ... I need to move only the color of a cell into another cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Why does my format keep changing in the cell? | Excel Discussion (Misc queries) | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
Conditonal Format with a date format | Excel Discussion (Misc queries) | |||
Keep custom format in new worksheet | Excel Discussion (Misc queries) | |||
Extend data range format and formulas | Excel Worksheet Functions |