LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Auto Filter one short list vs another very long list


Question, please.

I don't quite understand this portion, did you determine the range or was that part of the filter function that determined the A1:C54, with B & C empty?

CriteriaRange:=Sheets("Sheet2").Range("A1:C54")

It seems it is optional, did you put it on sheet 2 just as a reference?

Howard

Sub AdvFilter()
Dim LRow As Long

With Sheets("Parts")
LRow = .Cells(Rows.Count, 10).End(xlUp).Row

.Range("G1:N" & LRow).AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Sheet2").Range("A1:C54"), _
CopyToRange:=Sheets("Sheet2").Range("F1:H1"), Unique:=False
End With
End Sub
 
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
How do I change a long columns list to short ones in 2007 Excel? FitGurlFlea Excel Discussion (Misc queries) 1 February 19th 10 02:46 PM
Auto Filter List jfcby Excel Programming 5 May 4th 09 01:19 PM
Auto list/filter Scott Marcus Excel Discussion (Misc queries) 0 October 31st 06 05:23 PM
Long list of words to find with Filter englishtwit Excel Discussion (Misc queries) 2 July 29th 05 08:48 AM
Auto Filter From List James Stephens Excel Programming 0 January 28th 04 08:31 PM


All times are GMT +1. The time now is 10:41 PM.

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

About Us

"It's about Microsoft Excel"