Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Replace multiple words to replace using excell

I have a list of bad 300 names that must be delete full row in
excell. I must do this every few days. Is there a way to Replace the multiple
replacement values into a command so I can replace the same list in a single
step?

Thank You
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default How to Replace multiple words to replace using excell

You could use a macro... would that be an acceptable solution to you? Create a range named
BadNames (preferably, on a separate sheet), then run this to delete rows where the 'Bad name'
appears in column A.

Sub TryNow()
Dim myRow As Long
For myRow = Range("A1").SpecialCells(xlCellTypeLastCell).Row To 1 Step -1
If Not IsError(Application.Match(Cells(myRow, 1).Value, _
Range("Badnames"), False)) Then
Rows(myRow).Delete
End If
Next myRow
End Sub

HTH,
Bernie
MS Excel MVP


"ramsun" wrote in message
...
I have a list of bad 300 names that must be delete full row in
excell. I must do this every few days. Is there a way to Replace the multiple
replacement values into a command so I can replace the same list in a single
step?

Thank You



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
Replace several words to One Wanna Learn Excel Discussion (Misc queries) 2 April 30th 08 01:56 PM
multiple sets words replace dk New Users to Excel 5 April 10th 08 12:20 AM
can I save a file of multiple names to replace using excell 03 Greg is working hard. Excel Discussion (Misc queries) 2 July 18th 06 01:39 PM
Replace words from ADO recordset jenhu[_3_] Excel Programming 0 March 28th 06 05:27 PM
Excel to replace words ? Andy100 New Users to Excel 13 August 28th 05 05:17 PM


All times are GMT +1. The time now is 03:53 AM.

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"