excel vba - Referencing specific visible cells after using the Autofilter in VBA -


i trying refer specific visible cells after using autofilter function. although autofilter appears working correctly, unable refer specific visible cells afterwards. code follows:

        cells.autofilter         range("a1:zz100")             .autofilter field:=j, criteria1:=i1, operator:=xlor, criteria2:=i2         end         msgbox range(.cells(1, 2), .cells(100, 2)).specialcells(xlcelltypevisible).cells(2, 50)         msgbox autofilter.range.specialcells(xlcelltypevisible).cells(2, 50) 

both msgbox give me hidden values. please assist


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -