Auto colour based on adjacent cell

S

Sandy Mann

How does the first cell get coloured? By Conditional formatting or
manually? If by conditional formatting then use he same conditin=ons to
change the second cell.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
C

crapit

the 1st cell's color is manually changed
Sandy Mann said:
How does the first cell get coloured? By Conditional formatting or
manually? If by conditional formatting then use he same conditin=ons to
change the second cell.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
S

Sandy Mann

Unfortunately changing the cell colour will not fire a Worksheet_Change
procedure. You could do so with a SelectionChange or Calculate event.

Sorry.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

[email protected]
Replace @mailinator.com with @tiscali.co.uk
 
D

Don Guillett

Sub colormatchothercell()
Set rangetocopy = Range("d1")
ActiveCell.Interior.ColorIndex = _
rangetocopy.Interior.ColorIndex
End Sub
 
C

crapit

Possible not to run on macro?

Don Guillett said:
Sub colormatchothercell()
Set rangetocopy = Range("d1")
ActiveCell.Interior.ColorIndex = _
rangetocopy.Interior.ColorIndex
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
[email protected]
 
Top