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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -