|
-
Aug 9th, 2006, 02:52 PM
#1
Thread Starter
Member
search in cells to find any instance of words
I'm trying to search through a list of company names which include universities and states. I want to eliminate any instance of the word "university" or "state of", regardless of where it occurs in the cell. How would I go about doing that?
-
Aug 9th, 2006, 03:34 PM
#2
Re: search in cells to find any instance of words
Use the Find method (shown in my Excel Tips and Tricks link) using the argument LookAt:=xlPart to do the search, then just use Replace or Instr to rewrite teh string. Then use FindNext (see VBA Help) to keep searching...
zaza
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|