In Excel 2010, 2013, or 2016, display the File tab of the ribbon and then click Options.) (In Excel 2007 click the Office button and then click Excel Options. MsgBox "Select a cell in the range to be filtered.", vbOKOnlyĪll you need to do is assign the macro to the Quick Access Toolbar or to a shortcut key and you can turn AutoFilter on and off, just as if you used the tool from the ribbon. The first involves the use of a simple macro: What if you want a QAT option that is a real toggle, just like the tool on the ribbon? There are two approaches you can use to solve this problem. The AutoFilter tool that you can add to the QAT doesn't do that it only applies the AutoFilter. If you use the AutoFilter tool (the one you can add to the Quick Access Toolbar), not only do the controls appear, but Excel filters the list based on the cell you had selected when you used the tool.Īnother difference between the two is that the Filter ribbon tool functions like a toggle-choose it once, and the AutoFilter is applied choose it again and it is removed. If you have a cell selected in a list and you click the ribbon tool, then the AutoFilter controls appear at the top of each column in the list-there are no other changes to the list. The tool is a bit deceptive, however it is not the same as the Filter option on the Data tab of the ribbon. This tool uses an image of a funnel and an equal sign. You can add, to the Quick Access Toolbar, an AutoFilter tool.
It allows you to quickly filter any list by the contents of a particular column. One of the handy features of Excel is AutoFilter.