billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Good afternoon
Is there a way to insert the Month Day Year Hour & Minute combined with the "Results" file.
Thanks guys....
Is there a way to insert the Month Day Year Hour & Minute combined with the "Results" file.
Thanks guys....
Code:
Dim wb As Workbook
Dim filename As String
Set wb = Workbooks.Add
ThisWorkbook.Activate
ActiveSheet.Copy before:=wb.Sheets(1)
wb.Activate
filepath = CreateObject("WScript.Shell").SpecialFolders("Desktop") & Application.PathSeparator
wb.SaveAs filepath & Format(Now, "mm dd yy HH:mm") & ".xlsx", FileFormat:=51
wb.SaveAs filepath & "Results" & ".xlsx", FileFormat:=51
Last edited: