I have a file that contains data with the top rows defined as a Criteria range for an Advanced filter. Here's the code to do the Adv Filter:
Range(Cells(6, 1), Cells(lastrowwithdata, 15)).AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Range(Cells(1, 1), Cells(4, 15)), Unique:=False
(there's another procedure that yields the lastrowwithdata value).
How can I have VBA then select only the visible data result of the Advanced Filter? Running into problems since the row numbers of the result are of course mixed and out of sequence. I couldn't figure out how to have the above "Range" selected either by defining it as a variable, or somehow attaching the ".select" to it.
What I want to do is select the result of the Adv Filter, copy that data, and paste it again into another worksheet so the row numbers will be then in sequence.
Thanks for any suggestions!
Range(Cells(6, 1), Cells(lastrowwithdata, 15)).AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Range(Cells(1, 1), Cells(4, 15)), Unique:=False
(there's another procedure that yields the lastrowwithdata value).
How can I have VBA then select only the visible data result of the Advanced Filter? Running into problems since the row numbers of the result are of course mixed and out of sequence. I couldn't figure out how to have the above "Range" selected either by defining it as a variable, or somehow attaching the ".select" to it.
What I want to do is select the result of the Adv Filter, copy that data, and paste it again into another worksheet so the row numbers will be then in sequence.
Thanks for any suggestions!