-----Original Message-----
Is there a way of hiding data using conditional formatting on both screen
and print? Setting the font to white hides it on screen, but it still prints
black.
TIA
Ian
AFAIK you can not do this with conditional format but it
is possible to hide cells with say zero values and these
don't show in print preview so I supose they will not
print.
The following sub hides cells in column 3 that have a zero
value if this helps.
Sub HideZeros()
Dim rng As Range, c As Variant
Dim i As Long, nr As Long, j As Integer
nr = Application.WorksheetFunction.CountA(Range("A:A"))
Set rng = Range(Cells(1, 3), Cells(nr, 3))
' make sure all cells are visible
rng.EntireRow.Hidden = False
For Each c In rng
If c.Value = 0 Then
c.EntireRow.Hidden = True
End If
Next c
End Sub
Regards
Peter