macro for clearing cells
Try the below
Sub test5()
If WorksheetFunction.IsText(Range("I37")) Then _
Range("H36:J36").ClearContents
End Sub
If this post helps click Yes
---------------
Jacob Skaria
"mocc" wrote:
would it be possible to have a small macro for clearing cells only if a
certain critera is met? ie (if l37 blank, do nothing. if I37 has text, clear
i36,j36,h36 and so on?
thanks
|