R
roniaelm
Hi,
I have this macro to reset cells in C21-C31 to 0.
However, how do I amend this macro that it will only re-set the cells
to 0 if it the cell contains a value greater then 0 as I do not wish
for the macro to add a 0 to cells that are empty with no cell values
in them at all.
Sub ResetAll()
Dim myRng As Range
Set myRng = Sheets("Sheet1").Range("C21:C31")
myRng.Value = "0"
End Sub
Is it possible to do this?
Thanks!
I have this macro to reset cells in C21-C31 to 0.
However, how do I amend this macro that it will only re-set the cells
to 0 if it the cell contains a value greater then 0 as I do not wish
for the macro to add a 0 to cells that are empty with no cell values
in them at all.
Sub ResetAll()
Dim myRng As Range
Set myRng = Sheets("Sheet1").Range("C21:C31")
myRng.Value = "0"
End Sub
Is it possible to do this?
Thanks!