sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
Hello-
Trying to figure out how to do a timestamp that can be embedded within a macro (so I don't have to copy it to every sheet). Here's the coding I was running as a Worksheet_Change
thanks
Trying to figure out how to do a timestamp that can be embedded within a macro (so I don't have to copy it to every sheet). Here's the coding I was running as a Worksheet_Change
thanks
Code:
Private Sub Worksheet_Change(ByVal Target As Range) With Application
.EnableEvents = False
.ScreenUpdating = False
End If
If Not Intersect(Target, Range("R8,W25")) Is Nothing Then
If Cells(8, 18) <> "" And Cells(25, 23) = "" Then
Cells(4, 6) = Date
Cells(4, 6).NumberFormat = "dd-mmm-yyy"
End If
If Cells(25, 23) <> "" Then
Cells(4, 6) = Cells(25, 23).Value
Cells(4, 6).NumberFormat = "dd-mmm-yyy"
End If
If Cells(8, 18) = "" And Cells(25, 23) = "" Then
Cells(4, 6) = "No Data Input"
End If
With Application
.EnableEvents = True
.ScreenUpdating = True
End With
End If
End Sub
Last edited: