I currently use an Excel spreadsheet (Excel 2010, Windows 7) as a job list for a manufacturing company. When jobs are completed & shipped, a macro is used to archive the completed jobs from the main list/spreadsheet to a 'shipped' sheet in the same workbook.
This workbook has been setup to function this way for several years, and has worked just fine until today. Now, when using my command to archive the completed jobs, I receive a pop-up box containing the following error message:
"Excel cannot complete this task with available resources. Choose less data or close other applications."
And when I click 'OK', I receive a box with this message:
"Run-time error '1004': Insert method of Range class failed"
And here is the code for the macro:
Sub ARCHIVE()
'
' ARCHIVE Macro
'
' Keyboard Shortcut: Ctrl+Shift+A
'
Selection.Copy
Sheets("Archive - Shipped").Select
Rows("2:2").Select
Selection.Insert Shift:=xlDown
Range("A3").Select
Sheets("SL Schedule").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Range("A2").Select
End Sub