G
Guest
I would like to have a macro perform an advanced filter of my worksheet data. If I perform the filtering manually, the dialog box automatically calculates the list range for me. Is there a way to have the macro caluclate the extent of the list, and then use that information in the advanced filter call? Here's a sample of my code
Sheets("All Issues").Selec
Range("A1").Selec
Range("A1729").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=
Range("T1:T2"), Unique:=Fals
I got this code by recording a macro while I performed the advanced filter. I could set the range to something arbitrarily large like P1400, but that method does not seem very sophisticated (to say nothing of having to edit the macro if the list grows beyond 1400 lines). I have not seen an alternative in any of the other postings.
Thanks in advance for your help
Aaron
Sheets("All Issues").Selec
Range("A1").Selec
Range("A1729").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=
Range("T1:T2"), Unique:=Fals
I got this code by recording a macro while I performed the advanced filter. I could set the range to something arbitrarily large like P1400, but that method does not seem very sophisticated (to say nothing of having to edit the macro if the list grows beyond 1400 lines). I have not seen an alternative in any of the other postings.
Thanks in advance for your help
Aaron