dparteka
Member
I seem to know just enough to not get an error on something that doesn’t seem work.
I’m looking for the macro to… look in cell A18 then if the cell is <=0 then ClearContents of cells A thru V... then look in cell A19 and so on.
Dim MyRange As Range, UsedInRange As Integer
UsedInRange = WorksheetFunction.CountA(Columns("A:A"))
Set MyRange = Range("A18:V1018")
If UsedInRange <= 0 Then
MyRange.ClearContents
End If
I appreciate any help you can offer.
Thanks… Dennis
I’m looking for the macro to… look in cell A18 then if the cell is <=0 then ClearContents of cells A thru V... then look in cell A19 and so on.
Dim MyRange As Range, UsedInRange As Integer
UsedInRange = WorksheetFunction.CountA(Columns("A:A"))
Set MyRange = Range("A18:V1018")
If UsedInRange <= 0 Then
MyRange.ClearContents
End If
I appreciate any help you can offer.
Thanks… Dennis