Macro looping endlessly
Hi
The following resets the cell interior to Dark Blue - which is fine
If myCell.Value = "Hit" Then
With myCell.Offset(1).Resize(3, 1)
.Interior.ColorIndex = 11
With .Validation
.Delete
End With
End With
End If
However I need to clear the contents of the cells too - if I do this
If myCell.Value = "Hit" Then
With myCell.Offset(1).Resize(3, 1)
.Interior.ColorIndex = 11
.ClearContents
With .Validation
.Delete
End With
End With
End If
it goes into an endless loop. Any suggestions
Sandy
|