How can I filter the entire spreadsheet in Excel VBA instead of the specific rows the macro discovered? -


here's minimal example. show rows particular element empty. here's excel macro generator gives me.

sub showempties()     selection.autofilter     activesheet.range("$a$1:$m$4922").autofilter field:=6, criteria1:="=" end sub 

instead of a1-m4922, specific particular sheet, how can have filter entire sheet no matter how many rows there are?

usedrange revers range of worksheet contains data:

activesheet.usedrange.autofilter field:=6, criteria1:="=" 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -