sergiumirze
New Member
- Joined
- Apr 10, 2020
- Messages
- 2
- Office Version
- 2010
- Platform
- Windows
Hello All,
I have a file for entering products in a warehouse, so when the product entered the WH its making an automatic timestamp ( the code below).
Now I created another column for when the product was removed form warehouse and i need a time stamp in column 7 when in column 6 was selected the specific text "Removed" .
Can u please help me ?
Private Sub Worksheet_Change(ByVal Target As Range)
For Each cell In Target.Cells
If cell.Row > 1 And cell.Column = 1 Then
If cell.Offset(0, 2).Value = "" Then
cell.Offset(0, 2).Value = Now()
End If
End If
Next
End Sub
I have a file for entering products in a warehouse, so when the product entered the WH its making an automatic timestamp ( the code below).
Now I created another column for when the product was removed form warehouse and i need a time stamp in column 7 when in column 6 was selected the specific text "Removed" .
Can u please help me ?
Private Sub Worksheet_Change(ByVal Target As Range)
For Each cell In Target.Cells
If cell.Row > 1 And cell.Column = 1 Then
If cell.Offset(0, 2).Value = "" Then
cell.Offset(0, 2).Value = Now()
End If
End If
Next
End Sub