J
jlig
- Column L is the sold column.
- Column G is the Remaining Qty in Stock.
- When the value in L is typed in, I need the value in G (Qty in Stock) to
lower by that L value
I need this Code to run "after" the user types in the L value and hits
"Enter" or "Arrow Down"
I have tried this, but it does nothing at all?
-----------------------------------------------------------
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$L$2" Then
Range("G2") = Range("G2") - Range("L2")
End If
End Sub
- Column G is the Remaining Qty in Stock.
- When the value in L is typed in, I need the value in G (Qty in Stock) to
lower by that L value
I need this Code to run "after" the user types in the L value and hits
"Enter" or "Arrow Down"
I have tried this, but it does nothing at all?
-----------------------------------------------------------
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$L$2" Then
Range("G2") = Range("G2") - Range("L2")
End If
End Sub