Let's say I have some data in my Sheet1:
[tt]
A B C
1 FName LName Gender
2 John Smith M
3 Barb Brows F
4 Susie White F
5 Pat Black M
6 Joe Blue M[/tt]
I know I can do: Data - Filter - Auto Filter ...
Choose M in column C, filter all M's, copy all of that, move to Sheet2, paste it, and repeat all of that with F's
How can I do all of that in VBA?
I know I can record a Macro, but is there a better way to filter all Males and all Females into their own sheets in Excel VBA?
Have fun.
---- Andy