autofilter and VBA

wu88

New Member
Joined
Aug 21, 2002
Messages
9
Does anybody know how i can scroll through the results of an autofilter using VBA while skipping the hidden rows?

For example, I autofilter a list (with VBA) and the first result is on A600 - although it's displayed as if it were on A2. If I'm on A1 and try to activecell.offset down one, it goes to A2 (hidden in this case) and not A600 like i would like. any ideas?

thanks
-Nick
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
What I usually do is use the SpecialCells method to set a range of the visible cells only. Then, you can just loop in THAT range, without needing to check if the row is visible or not.
 
Upvote 0

Forum statistics

Threads
1,222,095
Messages
6,163,902
Members
451,865
Latest member
dunworthc

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