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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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