Unable to turn off Autofiltermode for activesheet

  • Thread starter Thread starter Legacy 193704
  • Start date Start date
L

Legacy 193704

Guest
Excel 2010: I am trying to update a master file (using VBA) with data sent from multiple users. I thought everything was going ok until recently when i found that i cannot turnoff the autofiltermode using VBA for the user's update file after opening, but I can turn it off manually by clicking the Filter funnel tool on the Data tab. The watch window shows autofiltermode is false and does not agree with the visual status of the filter arrows which I can see on the activesheet. I have both master and update Excel 2010 files open. I can see the activesheet is on the update file. The watch window agrees that the activeworkbook.path and .name are the update file. The activesheet.name is "Locations" which is correct. Directly after activating the Locations sheet, I try to turn autofiltermode to false like:

---mycodeprior---
wbupdate.Worksheets("Locations").Activate
ActiveSheet.AutoFilterMode = False
---mycodeafter---

The Locations sheet is not protected and the watch window indicates autofiltermode is already false, but I can see the filtering arrows.
wbupdate is delcared as workbook before all subs in Thisworkbook which is where all this code resides and I refer to it using that name is several sub procedures. I also find that i cannot unhide columns for activesheet. I believe this is not a filtering issue but a disconnect between what the code thinks is the activesheet and what I am seeing as the activesheet both visually and using checks in the watch window. Anyone know what is causing my disconnect?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

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