Removed Records: Sorting from /xl/tables/table2.xml part (Table)

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
Every third or fourth time I open this workbook I get the error "Removed Records: Sorting from /xl/tables/table2.xml part (Table)"

I have no Idea what to do.

Any Ideas?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
What kind of sorting are you doing on that table, and do you use code to do it?
 
Upvote 0
There are several worksheets in the book, all with tables and I do not know which one this is for. The sorting is basic, column a, column b, column c.
I have not made changes to the sort criteria and never had the issue before. how can I at lease identify what sheet the error is in?
 
Upvote 0
You'd need to unzip the workbook's XML and then find the actual table name listed in that xml file. You can then look through the workbook for it.

So, do you do any sorting in code, or is it all manual?
 
Upvote 0
I suspected as much. Does your code clear the existing sortfields before it adds more? It's a common mistake to forget to do that and it results in this error.
 
Upvote 0
I had this same issue and resolved it by adding the following to the Sub Workbook_BeforeClose

VBA Code:
Sheet2.Sort.SortFields.Clear

Found this resolution on StackOverflow

Solved the issue for me. I suspect I could manually do it before closing, but I have several VBA routines which filter data when you open the tab so I thought this was a better solution.
I suspect that the root of the issue is as RoryA said, but this bandaid resolved the issue until I can debug further.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top