Ok Alan you got me. I forgot about debugging. Tried this and it finds nothing. The macro runs like a dream until I save the file and try to reopen it again.
On further investigation it seems that the error only occurs the second time the macro runs.
If I open the file having recovered it save it over the original. Open it fresh run the macro by chaging a M to and X in column E, I can save and open no problem. If I make a second change it produces the error as before and has to recover the workbook. I think I need code to clear the sort settings each time?
""The workbook has to be recovered and the following error displays
Removed Records: Sorting from /xl/worksheets/sheet1.xml part.
There does not appear to be any data missing
.""
Bookmarks