[Time stamp in Excel VBA] Create time stamp string in Excel VBA #Excel VBA
Sub TimeStamp() time_stamp = Format(DateTime.Now, "yyyyMMdd_hhmmss") Debug.Print time_stamp End Sub