I just setup an inventory database, an I am using the following macro to help keep the count accurate when something is added/removed.
Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim numCell As Range
If Target.Count <> 1 Then Exit Sub
If Target.Value = "+" Then
Set numCell = Target.Offset(0, -1)
numCell.Select
numCell.Value = numCell.Value + 1
ElseIf Target.Value = "-" Then
Set numCell = Target.Offset(0, 1)
numCell.Select
numCell.Value = numCell.Value - 1
End If
End Sub
What I would like to do is see what items are moving by tracking when the macro is activated, so that I can see what inventory is actually being used; and with what frequency. I am pretty sure it can be done but my Excel skills are not the best, I'm really hoping someone can help me figure this out. Thanks in advance!
Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim numCell As Range
If Target.Count <> 1 Then Exit Sub
If Target.Value = "+" Then
Set numCell = Target.Offset(0, -1)
numCell.Select
numCell.Value = numCell.Value + 1
ElseIf Target.Value = "-" Then
Set numCell = Target.Offset(0, 1)
numCell.Select
numCell.Value = numCell.Value - 1
End If
End Sub
What I would like to do is see what items are moving by tracking when the macro is activated, so that I can see what inventory is actually being used; and with what frequency. I am pretty sure it can be done but my Excel skills are not the best, I'm really hoping someone can help me figure this out. Thanks in advance!