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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -