View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Mike Piazza Mike Piazza is offline
external usenet poster
 
Posts: 9
Default Help w/ macro to zero hard keyed numbers


I found somewhere that you could exclude dates by going:

For Each Rng In Cells.SpecialCells(xlCellTypeConstants, xlNumbers)
If Not IsDate(Rng.Value) Then Rng.ClearContents
Next Rng

Can I combine this with the insert blue & 0 as below:

With rng
.Value = 0
.Font.ColorIndex = 5
End With