Application Advanced Filter

K

keyt

How do I write in the macro to select the whole data list?

The VB will search a specified region ie: A1:J442, but as
the list grows, I need the macro to update.

Is there a goto last row type command? How do I include
it in:

Range("A1:J442").AdvancedFilter Action:=xlFilterCopy,
CriteriaRange:=Range( _"M1:N3"), CopyToRange:=Range
("P1:Y1"), Unique:=False

Thanks.
 
D

Don Guillett

Define a name for the range
insert>name>define>type in a name such as myrng>in the refers to box
=offset($a$1,0,0,counta($a:$a),9)
enter
now test by f5 and typing in myrng to see what is covered.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top