phillipclark
Board Regular
- Joined
- Sep 10, 2013
- Messages
- 65
Greetings All,
I am using the below code as a macro with an Image. The user clicks the image and the .xlsm file is saved with a specific file name and converted to an .xlsx file extension. It is here that i need the help. The original file closes " this is ok" the .xlsx file is left open. I need this file to close also.
Any help will be greatly appreciated.
Thank You in advance.
I am using the below code as a macro with an Image. The user clicks the image and the .xlsm file is saved with a specific file name and converted to an .xlsx file extension. It is here that i need the help. The original file closes " this is ok" the .xlsx file is left open. I need this file to close also.
Any help will be greatly appreciated.
Thank You in advance.
Code:
Sub SaveIt()
Application.DisplayAlerts = False
Dim dt As String, wbNam As String
wbNam = "Cookie Length Chart_"
dt = Format(CStr(Now), "yyyy_dd_mm_hh_mm AMPM")
ActiveWorkbook.SaveAs Filename:=wbNam & dt, FileFormat:=51
Application.DisplayAlerts = True
End Sub