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
Post a Comment