Hey i need some help with this code
I need a Function in this code to see if Target Cell is "Odd" or "Even"
and if cell Is "0" If "0" then Not add 1 to that Cell.....
if "Odd" then add 1 to value and if "Even" then no value Add to cell
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) On Error Resume Next
If Not Intersect(Target, Range("F10:R19")) Is Nothing Then
Target.Value = Target.Value + 1
Target.Value = Target.Value / 2
Cancel = True
End If
End Sub
I need a Function in this code to see if Target Cell is "Odd" or "Even"
and if cell Is "0" If "0" then Not add 1 to that Cell.....
if "Odd" then add 1 to value and if "Even" then no value Add to cell
Last edited: