I have a simple delete code line that gives me a 1004 error (Delete method of Range class failed), BUT the rows are deleted! The error causes the remaining code not to execute because of the error handling code I have which give a msgbox explaining that an error code occurred the exits.
Any idea what is causing the error? The rows that are being deleted are the correct rows, rows 37245:38416.
Any idea what is causing the error? The rows that are being deleted are the correct rows, rows 37245:38416.
Code:
.Rows(i & ":" & iEnd).EntireRow.Delete