Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.links
|
|||
|
|||
![]()
How about creating a WHERE clause along the lines of:
PartNumber IN ('12345', '23456', ..... ) and using that in your query? Code would be something like this: Dim C As Range Dim stWhere As String For Each C In Range("PartNumbers").Cells stWhere = stwhere & "'" & C.Value & "', " Next stWhere = " PartNumber IN (" & Left(stWhere, Len(stWhere)-2) & ")" Bill Manville MVP - Microsoft Excel, Oxford, England No email replies please - respond to newsgroup |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Filter Results only | Excel Discussion (Misc queries) | |||
Why are access query results different in Excel | Excel Discussion (Misc queries) | |||
Access query results to Excel | Excel Discussion (Misc queries) | |||
Why won't advanced filter return filter results? | Excel Worksheet Functions | |||
Store Excel Results in Access | Excel Discussion (Misc queries) |