Last active
May 14, 2020 03:09
-
-
Save imamuddinwp/cf7cabbeb5f046b3a7653f0d281adeaa to your computer and use it in GitHub Desktop.
Hi There!!! Here is the Excel VBA Macro code for Save a workbook in a directory with specific name and date with excel vba macro; powered by Imam Uddin; imamcu07.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub My_operation_name() | |
'After ending all operations--------- | |
ChDir "D:\ImAmUdDiN\Daily-Report" | |
ActiveWorkbook.SaveAs Filename:= _ | |
"D:\ImAmUdDiN\Daily-Report\DLS-" & Format(Now(), "DD-MMM-YYYY") & ".xlsx", FileFormat:= _ | |
xlOpenXMLWorkbook, CreateBackup:=False | |
ActiveWorkbook.Save | |
'--------All Done----------- | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment