Hello,
I am trying to show blank cells instead of 0 for the whole worksheet.
Here is what I've come up with:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
For Each cell In SomeRange
If (cell.Value = 0) Then cell.ClearContents
Next
End Sub
How do I get this to work?
Thanks!
I am trying to show blank cells instead of 0 for the whole worksheet.
Here is what I've come up with:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
For Each cell In SomeRange
If (cell.Value = 0) Then cell.ClearContents
Next
End Sub
How do I get this to work?
Thanks!