theres an easier way to do this.
rather than delete the macros and save the file.
just make a new workbook and save the file to the new workbook.
the new book won't have any macros to delete.
Private Sub SAVE_AS()
Application.DisplayAlerts = False
FILENAME = UCase(path)
Sheets("sheet2").Select
Set wb = Workbooks.Add
ThisWorkbook.Sheets("sheet2").Copy Before:=wb.Sheets(1)
For i = wb.Sheets.Count To 2 Step -1
Next i
wb.Sheets(1).Name = "give it a name"
wb.SaveAs (FILENAME)
Application.DisplayAlerts = True
wb.Close
Set wb = Nothing
End Sub
Bookmarks