Link to home
Start Free TrialLog in
Avatar of Mamarazzi
MamarazziFlag for Sweden

asked on

Copy ten first rows in range omitting hidden rows (VBA)

I have a sheet with filtered and sorted data and I want to copy the first ten visible rows and paste into another range.

How can I omit the rows hidden by filter and still get exactly ten?
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mamarazzi

ASKER

Perfect, thanks a lot!
Avatar of Suresh Arunthathiyar
Suresh Arunthathiyar

i want to copy first 50 visible rows and paste into another range, i tried to change the limit as 50. However im getting some error 'Method range of Object_Global failed'.

Please assist me with the same