J
JR
Hello,
I was given some excellent help on the forum, and thanks to all. Need help
with one more thing to finish. I was given the below macro to be able to
enter a number in one cell and the output cell would continuously add up the
sum. I need to take the output sum and subtract it from another cell, but I
keep getting an error. What do I need to do to make this happen.
Thanks JR
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(.Cells, Range("C2:C15")) Then
If IsNumeric(.Value) Then
Application.EnableEvents = False
.Offset(0, 1).Value = .Offset(0, 1).Value + .Value
Application.EnableEvents = True
End If
End If
End With
End Sub
I was given some excellent help on the forum, and thanks to all. Need help
with one more thing to finish. I was given the below macro to be able to
enter a number in one cell and the output cell would continuously add up the
sum. I need to take the output sum and subtract it from another cell, but I
keep getting an error. What do I need to do to make this happen.
Thanks JR
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If Not Intersect(.Cells, Range("C2:C15")) Then
If IsNumeric(.Value) Then
Application.EnableEvents = False
.Offset(0, 1).Value = .Offset(0, 1).Value + .Value
Application.EnableEvents = True
End If
End If
End With
End Sub