Hello,
I am trying to save a copy of the current workbook as a macro enabled workbook. However I get a wrong number of arguments or invalid property assignment on the line in Orange below. can anyone help pls ? thank you.
kind regards
Kaps
I am trying to save a copy of the current workbook as a macro enabled workbook. However I get a wrong number of arguments or invalid property assignment on the line in Orange below. can anyone help pls ? thank you.
kind regards
Kaps
Rich (BB code):
Public Sub create_reporting_workbook()
Dim File_name As String
Dim d As Integer
Dim sheet_name As String
Dim new_file_name As String
new_file_name = reporting_month & " " & reporting_year & ".xlsm"
template_wb.SaveCopyAs new_file_name, FileFormat:=xlOpenXMLWorkbookMacroEnabled
Set reporting_wb = ActiveWorkbook
reporting_wb.Sheets(1).Name = "Summary"
Last edited by a moderator: