Selecting Next Row in Filtered Range

G

Guest

Guest
I am trying to select the next visible row in a filtered range - using "activecell.offset(1,0).select" moves to the next numerical row, rather than the next visible row - any ideas?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
On 2002-02-19 00:52, Anonymous wrote:
I am trying to select the next visible row in a filtered range - using "activecell.offset(1,0).select" moves to the next numerical row, rather than the next visible row - any ideas?


Select the whole filter range then :-

Dim cell as Range
For Each cell In Selection
If Not cell.EntireRow.Hidden Then
'Do your thing here
End If
Next cell
 
Upvote 0
Thanks for your suggestion - I had been using the hidden=true? check.

The problem with this is that the range I am using is +10,000 rows and the filtered list is about 50 rows - so this check is very time consuming. When moving through a filtered list manually (hitting the down arrow) the next visible cell is selected, so I am sure there is a faster way to code this.

Any more suggestions would be greatly appreciated.
 
Upvote 0
I use:

For Each Cell in Range("A1:A50000").SpecialCells(xlCellTypeVisible)

Next Cell

In about 5 minutes, this message is being moved to the general Excel section.
_________________
MrExcel.com Consulting
This message was edited by MrExcel on 2002-02-19 02:33
 
Upvote 0

Forum statistics

Threads
1,214,388
Messages
6,119,227
Members
448,878
Latest member
Da9l87

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