Hi Sandy,
This is not a conditional formatting issue. You could consider an
Worksheet_Change macro. Something like this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = "" Then
Target.Interior.ColorIndex = 6
Else
Target.Font.ColorIndex = 3
End If
End Sub
However, this will format the cell if the user changes something and then
changes it back to the original value, for example they use undo.
Also, as written this works with every cell in the worksheet. If you want
to control which cell you need to define the range by adding something like
Private Sub Worksheet_Change(ByVal Target As Range)
Set isect = Application.Intersect(Target, [MyRange])
If Not isect Is Nothing Then
If Target = "" Then
Target.Interior.ColorIndex = 6
Else
Target.Font.ColorIndex = 3
End If
End If
End Sub
This code needs to be added to the Sheet module of any sheets where you want
it to work. Note that MyRange is a range name you have defined in the
spreadsheet.
You can compare two workbooks for changes using one of the VBA add-ins you
can find on the Web - Google "Compare workbooks" and skip the ones that use
Excel's built in command Windows, Compare...
Cheers,
Shane Devenshire
Microsoft Excel MVP
> Hi Excel Experts
>
[quoted text clipped - 13 lines]
>
> Many thanks
Sandy82 - 21 Apr 2008 06:50 GMT
Hi Shane
Many thanks for this I will try the macro out first.
Best regards
Sandy
> Hi Sandy,
>
[quoted text clipped - 55 lines]
> >
> > Many thanks
Sandy82 - 30 Apr 2008 20:25 GMT
Hi Shane,
Once again many thanks for your help, the macro works really well but could
you possibly help me with another problem - is there a macro I could use in
the spreadsheet with the links so that it picks up the format changes from
the linked cells?
Sandy
> Hi Shane
>
[quoted text clipped - 62 lines]
> > >
> > > Many thanks