LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default How to delete a row if strong NOT found....

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

 
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 to Delete a Range in Closed Workbook (to Replace Delete Query) [email protected] Excel Discussion (Misc queries) 1 March 8th 06 10:10 AM
IF NOT FOUND roy.okinawa Excel Worksheet Functions 5 November 17th 05 03:26 AM
How to delete values of a cell if it is found in another coloumn karty Excel Worksheet Functions 3 October 22nd 05 04:29 PM
How do i delete a macro in Excel 2003 when delete isn't highlight Abel Excel Discussion (Misc queries) 2 September 13th 05 04:09 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM


All times are GMT +1. The time now is 09:03 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"