Hi,
I'm forcing a time stamp into F17 based on "Pass, Fail, or Untested[P14]" value in E17 using Worksheet_Change.
So far, the script works for cell F17, however, I would like it to work for the range of cells F17:F500 based on values in E17:E500.
How should I modify this script to work with the range of cells???
Thanks for your help!!
-Br3nt
Here's the code snippet:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target = [E17] Then
If Target.Value = "Pass" Then
Range("F17").Select
ActiveCell.Value = Now
ElseIf Target.Value = "Fail" Then
Range("F17").Select
ActiveCell.Value = Now
Else
Range("F17").Select
ActiveCell.Value = [P14]
End If
End If
End Sub
I'm forcing a time stamp into F17 based on "Pass, Fail, or Untested[P14]" value in E17 using Worksheet_Change.
So far, the script works for cell F17, however, I would like it to work for the range of cells F17:F500 based on values in E17:E500.
How should I modify this script to work with the range of cells???
Thanks for your help!!
-Br3nt
Here's the code snippet:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target = [E17] Then
If Target.Value = "Pass" Then
Range("F17").Select
ActiveCell.Value = Now
ElseIf Target.Value = "Fail" Then
Range("F17").Select
ActiveCell.Value = Now
Else
Range("F17").Select
ActiveCell.Value = [P14]
End If
End If
End Sub