![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
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?
|
|
|
|
#2 | |
|
Join Date: Feb 2002
Posts: 47
|
Quote:
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 |
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#4 |
|
.
Join Date: Feb 2002
Location: Akron, Ohio USA
Posts: 789
|
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 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|