Right-click the sheet tab and select View code.
Paste in the following code.
You will need to alter the code to reflect the correct cell
and to enter the code to handle the dates/colors.
See the lines marked with <<<
What is provided is "Event" code that automatically executes
when a change is made to any cell.
'----
Private varOldValue As Variant 'place this line at top of module.
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ExitProcess
If Target.Address = Me.Range("B5").Address Then '<<<<
Application.EnableEvents = False
If Len(varOldValue) = 0 Then
'change some colors <<<<
End If
varOldValue = Target.Value
Application.EnableEvents = True
End If
Exit Sub
ExitProcess:
Application.EnableEvents = True
End Sub
----
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
"theBruceGuy" <(E-Mail Removed)>
wrote in message
()My knowledge is in Access, but I have been asked to assit in making an
Excel spreadsheet cell do the following:
On Change of the cell value, if the previous value of the cell was null or
blank - change the background color to:
If now() less (a date in the current column row 7) <= 30 yellow
if now() less (a date in the current column row 7) >= 30 Green
else :if it had a value leave the color as is
I have now spent a considerable time trying to accomplish this and am no
further forward. Can anyone help?