Hi
When I generate a new workbook from a macro enable template, I am not able to set the Save as type to: "Macro enable workbook" as default file type.
This macro does not wprk for the New workbook...
Sub SaveBook()
Dim sFile As String
sFile = Range("C7").Value & ".xlsm"
ActiveWorkbook.SaveAs Filename:=sFile, FileFormat:=52
End Sub
I want this macro to kick when the user is choosing File -> Save or File -> Save As
What am I missing her?
When I generate a new workbook from a macro enable template, I am not able to set the Save as type to: "Macro enable workbook" as default file type.
This macro does not wprk for the New workbook...
Sub SaveBook()
Dim sFile As String
sFile = Range("C7").Value & ".xlsm"
ActiveWorkbook.SaveAs Filename:=sFile, FileFormat:=52
End Sub
I want this macro to kick when the user is choosing File -> Save or File -> Save As
What am I missing her?