I have declared a range (CondRange) and set it to a worksheet range. The worksheet range has an autofilter applied to it, and I want to loop through all filtered/visible rows in CondRange. I thought the following would work, but it loops through ALL rows in CondRange (even the ones filtered out):
What am I doing wrong?
Thanks!
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Code:
For Each C In CondRange.SpecialCells(xlCellTypeVisible)
Debug.Print C.Row
' Create running total of values in Cell next to C
Next C
Thanks!
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)