Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I need to iterate through all the cells of a worksheet and delete al rows that contain any words in a specific list. This "keyword" list i quite long. What's the best way to store these words - keeping in min both ease of adding more and ease of iteration, as well? Thanks! Elieze -- Laze ----------------------------------------------------------------------- Lazer's Profile: http://www.excelforum.com/member.php...nfo&userid=750 View this thread: http://www.excelforum.com/showthread.php?threadid=27296 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try like:
strings in in a range or array for each rCell in rSeach.Columns(1).Cells if iserror(application.match(rCell,rStrings,0)) then 'unfound endif next keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool Lazer wrote: I need to iterate through all the cells of a worksheet and delete all rows that contain any words in a specific list. This "keyword" list is quite long. What's the best way to store these words - keeping in mind both ease of adding more and ease of iteration, as well? Thanks! Eliezer |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Lazer,
I need to iterate through all the cells of a worksheet and delete all rows that contain any words in a specific list. This "keyword" list is quite long. What's the best way to store these words - keeping in mind both ease of adding more and ease of iteration, as well? I would use a Dictionary object from the Windows scripting runtime for the keyword list, mainly because it has an Exists property to test if an item is in the list. However, it might be more efficient to iterate through the list and use Range.Find to see if they're used, rather than iterate through the cells to see if they're in the list. It'll probably depend on the relative size of the sheet and the lists. Regards Stephen Bullen Microsoft MVP - Excel www.oaltd.co.uk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replacing hard returns in long text strings. | Excel Discussion (Misc queries) | |||
store inventory sheet(ex:sports equipment store) | Excel Worksheet Functions | |||
How to find number of pairs of strings from list of strings? | Excel Worksheet Functions | |||
Wildcard MATCH() breaks on long (?) strings | Excel Worksheet Functions | |||
Filter long Text strings | Excel Worksheet Functions |