Hi All,My question is this I wish to create an archieve of sheets that are deleted from an excel app, but dont want any of the sheet code to be copied with the sheet. I have the following code which runs but does not delete the code. Please help.Private Sub ArchiveRecord(SheetToArchive As String) Dim RemoveDate As String RemoveDate = Format((Date + 1095), "dd-mmm-yy") Application.ScreenUpdating = False Workbooks.Open ("\\AMO3\ROOTFS3\fashamm426\10QOGLR-LAD-28-FtrSectSNCO\New Folder (2)\RECS_ARCHIVE.xls") Workbooks("RECS DATA ENTRY v7.xls").Sheets(SheetToArchive).Copy After:=Workbooks("RECS_ARCHIVE.xls").Sheets("-") ActiveSheet.Name = ActiveSheet.Name & " (Delete on " & RemoveDate & ")" With ActiveWorkbook.VBProject.VBComponents(ActiveSheet.Index).CodeModule .DeleteLines 1, .CountOfLines End With ActiveWorkbook.Close True Application.ScreenUpdating = TrueEnd SubThanksMatt