ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting in groups within a sort (https://www.excelbanter.com/excel-programming/309307-selecting-groups-within-sort.html)

shawb

Selecting in groups within a sort
 
OK so I have an autofilter array like so

Adam A
Brad A
Charlie B
Sandra A

Anyway what I do in my macro is select all the A's from the autosort.

What I want to do is paste all the names with A's next to them into a
report on another worksheet. This report can only fit twelve peoples
names to a page. How do I select the first 12 names, then the second
twelve names etc. (given that they must be A's).


---
Message posted from http://www.ExcelForum.com/


Dave Peterson[_3_]

Selecting in groups within a sort
 
Maybe you could paste all the names of the people with A's in a temporary
worksheet.

Then loop through that list 12 at a time.



"shawb <" wrote:

OK so I have an autofilter array like so

Adam A
Brad A
Charlie B
Sandra A

Anyway what I do in my macro is select all the A's from the autosort.

What I want to do is paste all the names with A's next to them into a
report on another worksheet. This report can only fit twelve peoples
names to a page. How do I select the first 12 names, then the second
twelve names etc. (given that they must be A's).

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson



All times are GMT +1. The time now is 12:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com