Does this custom format prevent inserting the value of zero?
Code: Select all
Sub Resetvalues()
ActiveSheet.Unprotect
Application.ScreenUpdating = False
Dim wsh As Worksheet
Set wsh = Worksheets("EVENT-Work")
Set myRange = wsh.Range("A9:A110, G9:G110,N9:N110,I1,J4,D122,J122,Q122,D118:D119,J118:J119,Q118:Q119,D2")
For Each cl In myRange
If Not IsEmpty(cl.Value) And (cl.Value) <> "QTY" Then cl.Value = "0"
Next cl
wsh.Range("J5").Value = "100"
wsh.Range("I1").Value = "0"
Application.ScreenUpdating = True
ActiveSheet.Protect
End Sub