Issues with Personal View filtering and running Macros(VBA)

Brass Contributor

We use a shared Excel 365 (co-authored desktop) file to track our work orders, the data from our ERP system is updated by the users multiple times during the day. They paste the new ERP data into blank “update” tab, go to their current working tab, then click a “Run Update” button that triggers an update macro that runs and updates their current working tab data.

This has been working relatively well, but now we are having an issue with the “sheet view” option that was added with Microsoft 365 update Version 2007 (Build 13029.20308).

The macro uses the code “ActiveSheet.AutoFilter.ShowAllData"  to clear the filters before the update runs. But, this code does not remove the filter of any user that is has “sheet view” set to “personal view”, that users view does not change and somehow that carries over into the update data.

 

This is a big problem because there is no way the other users know (that I am aware of) if someone has a “personal view” active on the worksheet. They run the update with another user in personal view mode, causing the update data to be flawed, missing rows, having blank rows within the data table and etc. Luckily the data is corrected if everyone closes out of “personal view” and the update is ran again.

I don’t know if there is even any VBA code that would remove the “sheet view” filters of all users in “personal view” of that workbook/worksheet?

0 Replies