View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GrahamB GrahamB is offline
external usenet poster
 
Posts: 12
Default Conditional Formats for formulae and values

Hello "Gary's Student",
Many thanks for your reply; although fairly new to this, i am always
surprised (and grateful) that experts like you spend thier time and effort
helping newbies. It may be some days before i can re-post as I have some
reading to do (!) but many thanks, i will respond in due course.
GrahamB

"Gary''s Student" wrote in message
...
Hi Graham:

Paste the following macro into Worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A5")) Is Nothing Then
Exit Sub
End If
With Range("A5")
If .HasFormula Then
Exit Sub
End If
.ClearFormats
.Font.FontStyle = "bold"
.Font.ColorIndex = xlAutomatic
End With
End Sub

If you are not familiar with VBA, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm
--
Gary's Student


"GrahamB" wrote:

Cell A5 contains a formula with that cell unlocked. The formula gives a
prompt to the user who can then either accept the forluma's 'suggestion'
or
overtype that formula with a value. The default font format is Arial 10
with
half scale grey. If the user chooses to overtype that formula, I want the
result to show as bold and black (or automatic). The sheet will then
effectively highlight (in bold) those cells where the formula has been
overtyped. (I don't think it makes a difference but A5 default format is
custom 'hh:mm').
I've tried all types or conditional formatting but cannot get the correct
result !
GrahamB