Hi,
the easiest way to do would be like this :
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
range_D
range_FJN
End Sub
Sub range_D()
If Target.Count > 1 Or Intersect(Target, Range("D11:O11, D12:O12, D13:O13")) Is Nothing Then Exit Sub
Select Case Target.Value
Case Is = ""
Target.Value = "1"
Case Is = "1"
Target.Value = "2"
Case Is = "2"
Target.Value = "3"
Case Is = "3"
Target.Value = "4"
Case Is = "4"
Target.ClearContents
End Select
Cancel = True
End Sub
Sub range_FJN()
If Target.Count > 1 Or Intersect(Target, Range("F20:F23, J20:J23, N20:N23")) Is Nothing Then Exit Sub
Select Case Target.Value
Case Is = ""
Target.Value = "85"
Case Is = "85"
Target.Value = "170"
Case Is = "170"
Target.Value = "255"
Case Is = "255"
Target.Value = "340"
Case Is = "340"
Target.Value = "425"
Case Is = "425"
Target.ClearContents
End Select
Cancel = True
End Sub
Bookmarks