views:

152

answers:

1

Excel 2003 Working with a large sheet which is typically autofiltered. However when autofilter is turned off the indicators are still all there, they just don't work. Not sure whether some vba was run which may have caused this.

Other workbooks behave correctly on the same machine, and this workbook behaves this way on other machines.

Has anyone ever run into this? Or better yet fixed it?

I just noticed the filtered range indicators went 45 columns right with no content on the last two column headers, although it was not actually filtered. I added content to those last two header columns and tried to run AutoFilteredMode=False, with no result, but then VisibleDropDown:=False later did hide the indicators, but only on the last two columns.

+1  A: 

I would say that this is an issue left over from a Macro that did not complete correctly. I would start by running this macro to see if it fixes the issue.

Sub TurnFilterOff()
'removes AutoFilter if one exists
  Worksheets("Data").AutoFilterMode = False
End Sub

If this does not work, you could do this to atleast hide the indicators.

Sub HideArrows() 
'hides all arrows 
Dim c As Range 
Dim i As Integer 
i = Cells(1, 1).End(xlToRight).Column 
Application.ScreenUpdating = False 

For Each c In Range(Cells(1, 1), Cells(1, i))
  c.AutoFilter Field:=c.Column, _ 
    Visibledropdown:=False 

Next 

Application.ScreenUpdating = True 
End Sub
Irwin M. Fletcher
Thank You, Irwin, you don't know how much I wished this worked. The TurnFilterOff() does work on sample data pulled into another sheet. The HideArrows() actually turns autofilter on, although it hides the indicators, but again, only on partial data copied from this original workbook.In the past I have copied the whole sheet to another workbooks and started over. I don't know what the primary user does that causes this, so it occurs again and that isn't a real solution.
datatoo
This is interesting, if you have a place that you can host the file for download, I would be happy to take a quick look, assuming the data is not confidential.
Irwin M. Fletcher
I would, but it is, and it is not my data. I have discovered that whatever is wrong is eliminated when I copy paste the data from the sheet. If I knew the cause and could prevent it, that would be good enough. Thanks
datatoo
Although I have not ever resolved this completely, Irwin has gotten me in the right direction.I am sure he is right, that a macro has caused this and there are residual things from that. How to eliminate this is still open.
datatoo