How to move down cells...
I would just do it in a loop, checking to see if the row was visible after each
move.
do
activecell.offset(1,0).select
if activecell.entirerow.hidden = false then
exit do 'found a visible cell
end if
loop
AvWG wrote:
Hi,
On a worksheet it is easy to move down with the cursorkeys of a keyboard,
even if the information in the worksheet is shown using filters. With the
down-arrow-key you go to the next row
With VBA moving to the next cell is easely done with
ActiveCell.OffSet(1,0).Select.
But which VBA-command do you use when your data is display with the use of a
filter? Using ActiveCell.OffSet(1,0).Select results in going to a cell/row
that isn't shown by the flter..
Who can help me?
Thanks,
André
--
Dave Peterson
|