hi all,
is there a way to remove the For... Next loop in the below and do it with one step using SpecialCells
thanks for any ideas
Philip
is there a way to remove the For... Next loop in the below and do it with one step using SpecialCells
Code:
Sub clearCells()
Dim oCell As Range
Range("C1:C" & Range("A1").End(xlDown).Row).Formula = "=IF(OR(A:A=""+"",A:A=""-""),NA(),"""")"
ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas, xlErrors).EntireRow.Select
For Each oCell In Selection
Range("A" & oCell.Row).Clear
Next
Range("A1").Select
End Sub
thanks for any ideas
Philip