View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
JayKay100 JayKay100 is offline
external usenet poster
 
Posts: 6
Default How to delete a row if strong NOT found....



"JayKay100" wrote:

I desperatly need a macro that will;

1. Ask me to input a column letter
2. Ask me to input a search string
3. Ask me to input a output file name
3. Search the entire column and delete all rows in which the search string
is NOT found.
4. Save the results to the output file name

*** The column rows will all have some other information than the search
string *** such as "Earle Ike Toyota Volvo"

I don't know if you need the following but here it is.
I use excel 2002 - the worksheet contains no more than 15 columns but can
have up to 25,000 rows. I work with automobile dealers and I have a
worksheet with all dealership names, address and franchise names. I need to
go into the info, delete all names that (lets say) do NOT have Toyota (search
string) in them and then save the results to a new worksheet named Toyota but
without changing (saving) the origional file. I can do the saving manually
but it would be nice to have that in the macro also.
I hope i covered it well enough to answer any questions. If not, my email is

Thanks in advance for any help given. I really appreciate it.
Jim