I have a macro-based workbook where I run multiple processes and all the results are stored in the same XLSM workbook. I need to store all the output sheets i.e all the sheets except the sheet(1) to a new workbook and save it as xlsx ( macro-free file )
I have written a very simple code to copy a specific sheet and rename it to xlsx. However, I need to copy all sheets except first one and save it as a macro-free workbook ( so that no VBA code present in output file )
Sub copy()
ThisWorkbook.Sheets("Sheet1").Copy
ActiveWorkbook.SaveAs "C:\Output.xlsx", FileFormat:=51
End Sub
Sheets(1)
or the sheet namedSheets("Sheet1")
note that these can be different sheets. – Pᴇʜ