excel - Error 1004 when trying to get AutoFilter criteria of date filtering -


i'm working on piece of vba code should save & restore current autofilter state in excel. i've been using the code here looong time without issues, i've run pretty serious one. let me illustrate that...

assume have (very simple) table setup date filtering: enter image description here

if filtering criteria used programmatically, fail: enter image description here

this happening me in excel 2010. know workaround this?

a link same issue described else on microsoft technet: excel vba autofilter criteria when operator xlfiltervalues dates points jon von der heyden's site solution, site mentions:

unknown (likely date treeview filter): to-date unable find way capture date filters criteria based on selection tree view control in filter drop-down. these criteria not stored in criteria1 or criteria2 properties. imagine working out criteria involve looping range_field values. although first require other field filters turned-off, not do-able worksheet function , involve timer trigger sub-routine. again, chose avoid complexity.

seems bug, occurs when using tree view @ bottom of filter selector.

if use "datefilters" option , select filter work correctly.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -