Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Application Advanced Filter

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Application Advanced Filter

One way

Use a dynamic range name
http://www.contextures.com/xlNames01.html#Dynamic



--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"keyt" wrote in message ...
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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Application Advanced Filter

Define a name for the range
insertnamedefinetype in a name such as myrngin 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.

"keyt" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM
VB Application for Advanced filter Macro Poogy Excel Programming 1 August 19th 03 03:37 PM


All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"