Hello Friends,
This is my first time on an IT forum and I am also new to VBA and therfore was wondering how to write the same formula below several times for several different cells given that I am only able to use one Worksheet change.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'If the cell just changed (Target) is the cell we're looking for (F27)
If Target.Address = Me.Range("F30").Address Then
'then let the value of cell G28 be a formated date/time stamp, separated by a space
Me.Range("G31").Value = Format(Date, "dd-mmmm-yyyy") & " " & Format(Now, "h:mm:ss AM/PM")
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'If the cell just changed (Target) is the cell we're looking for (F27)
If Target.Address = Me.Range("G20").Address Then
'then let the value of cell G28 be a formated date/time stamp, separated by a space
Me.Range("G21").Value = Format(Date, "dd-mmmm-yyyy") & " " & Format(Now, "h:mm:ss AM/PM")
End If
End Sub