Hi,
I would like to date stamp a range of cells in column H, when the value on the same row in column G is changed to = "Yes". Have created a Worksheet_Change, but am unable to fix the column H change part.
Private Sub Worksheet_Change(ByVal Target As Range)
With Range("G34:G310")
For Each Cell In Range("G34:G" & ActiveCell.SpecialCells(xlCellTypeLastCell).Row)
Select Case Cell.Value
Case Is = "Yes"
Cell("H34:H").Value = Int(Now)
End Select
Next Cell
End With
End Sub
Thanks in advance
I would like to date stamp a range of cells in column H, when the value on the same row in column G is changed to = "Yes". Have created a Worksheet_Change, but am unable to fix the column H change part.
Private Sub Worksheet_Change(ByVal Target As Range)
With Range("G34:G310")
For Each Cell In Range("G34:G" & ActiveCell.SpecialCells(xlCellTypeLastCell).Row)
Select Case Cell.Value
Case Is = "Yes"
Cell("H34:H").Value = Int(Now)
End Select
Next Cell
End With
End Sub
Thanks in advance