Rolling over the visible rows of a filtered table

Xnatal

New Member
Joined
Apr 25, 2016
Messages
2
Hi, i'm searching for a code to go through a table and register only the visible rows of a filtered table. But all I get is it to register the first visible row of every block of rows:

Code:
For i = 2 To 2000  

With Worksheets("sheet1").AutoFilter.Range.SpecialCells(xlCellTypeVisible).Areas(i)(1, 6).Select
 End With
...
next

It only registers the rows that are alterned in the filtered table, like of each block of filtered rows only takes the fist row and jumps to the next block, ignoring the rest of the visible rows of the previous. Hard to explain. Could somebody help?

Thanks.
(Honoured to participate in this olimpus of excel anyway ;)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Xnatal,

Based on your example above, can you tell us whether you want to select first visible cell?
 
Upvote 0
Hi RahuIM, I don't want only the first visible cell, but I want to go through all the visible cells, on by one, to register them in a list variable. How do I go to the second, third.. visible cell? The code I provide, which I gatherded form other threads, only jumps to the first one, there is the problem. I've tried also tried with offset, but no way.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,217,416
Messages
6,136,514
Members
450,018
Latest member
gpslyone

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top