I found the date stamp macro here and it works for the spreadsheet that I have. Except for one thing.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in Col BW
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 75 Then 'can be modified, see below
n = Target.Row
If Excel.Range("BW" & n).Value <> "" Then
Excel.Range("BX" & n).Value = Now
End If
End If
enditall:
Application.EnableEvents = True
End Sub
On my spreadsheet in column BW, I have given the users a list to select. There are 4 options:
1) Load
2) Extend
3) Terminate
4) In Progress
I want the date stamp to work in column BX if the users select either "Load", "Extend" or "Terminate", but if the user selects "In Progress", I do not want the date stamp. I want to leave it blank. How do I make this exception?
Please help!![]()
Bookmarks