Hi All,
Is it possible to create a formula in excel to return the current date in YYYYMMDD format? If the month or day is only 1 digit, I need the formula to return 2 digits (e.g. 20220103 for January 3, 2022).
Here is the VBScript I would like to add that formula to:
Sub InputCurrentDateZPLP1()
'
' InputCurrentDateZPLP1 Macro
'
lastRow = Cells(Rows.Count, "A").End(xlUp).Row
Range("F2:F" & lastRow).FormulaR1C1 = "=TODAY()"
End Sub
Thanks in advance!
Is it possible to create a formula in excel to return the current date in YYYYMMDD format? If the month or day is only 1 digit, I need the formula to return 2 digits (e.g. 20220103 for January 3, 2022).
Here is the VBScript I would like to add that formula to:
Sub InputCurrentDateZPLP1()
'
' InputCurrentDateZPLP1 Macro
'
lastRow = Cells(Rows.Count, "A").End(xlUp).Row
Range("F2:F" & lastRow).FormulaR1C1 = "=TODAY()"
End Sub
Thanks in advance!
Last edited: