Set AutoFilter in Excel with VBA -



Set AutoFilter in Excel with VBA -

can explain why first "autofilter" statement in code below continually gives "autofilter method of range class failed" in excel 2010?

activesheet.autofiltermode = false shtusr.range("a1").select activesheet.range("a1").autofilter field:=1, visibledropdown:=true activesheet.range("b1").autofilter field:=2, visibledropdown:=true activesheet.autofiltermode = true

i think have found it!

apparently, autofilter fails if can't find info in range. seek adding values in cells a1 , b1 (and delete activesheet.autofiltermode = true line). 'general use' then, safe, need find or similar test info within range.

+1 q though.

excel excel-vba excel-2010

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -