G Guest Dec 30, 2004 #1 Is there a macro statement I can use that will set the AutoFilter condition to OFF regardless of teh current state it is in?
Is there a macro statement I can use that will set the AutoFilter condition to OFF regardless of teh current state it is in?
M Max Dec 30, 2004 #2 Maybe try the snippet below, copied from Debra's: http://www.contextures.com/xlautofilter03.html Turn Off AutoFilter Use the following code to turn off an AutoFilter, if one exists Sub TurnFilterOff() 'removes AutoFilter if one exists Worksheets("Data").AutoFilterMode = False End Sub
Maybe try the snippet below, copied from Debra's: http://www.contextures.com/xlautofilter03.html Turn Off AutoFilter Use the following code to turn off an AutoFilter, if one exists Sub TurnFilterOff() 'removes AutoFilter if one exists Worksheets("Data").AutoFilterMode = False End Sub