Search notes:

Using Excel's AutoFilter object in the Immediate Window

Sometimes, it's easier to use Excel's AutoFilter object in the immediate window.
The following fragments assume that a Range is selected whose top row has the headings and whose rest contains the data to be filtered.
Filter the range on its second and fourth columns:
selection.autoFilter 2, ">10"  , xlAnd, "<99"
selection.autoFilter 4, ">qqq"
Remove the condition of the second column:
selection.autoFilter 2
Modify (override) the condition of the fourth column:
selection.autofilter 3, ">yyy"
Turn off auto filtering:
activeSheet.autofiltermode= false
Just add the arrows, but don't filter anything: Turn off auto filtering:
selection.autofilter
Add a condtion in the column with a given header name:
selection.autofilter application.match("header-name", selection.rows(1), 0), ">10"

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1759298572, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/Office/Excel/Object-Model/AutoFilter/immediate-window/index(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78