Trying to get VBA to put a static value upon workbook being saved, e.g.: "Latest saved: Wed, 09.28.22 - 09:16"
Planning to call below macro on Workbook Before Save. Getting this error for code below:
Planning to call below macro on Workbook Before Save. Getting this error for code below:
VBA Code:
Sub LatestSaved()
Dim LS As String
Set LS = "Latest updated: " & Text(Now(), "ddd, mm.dd.yy - hh:mm")
Sheet2.Range("B4").Value = LS
End Sub