Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Applying FIND Function on a Compound word

Column C contains names with some containing the word "LTD" I need to
find and activate the cell with names containing the word "LTD" E.g
"NIGERTEQ COMMUNICATION LTD"

I have applied the codes below without success:

Selection.Find(What:="LTD", After:=ActiveCell _
, LookIn:=xlValues, LookAt:=xlWhole _
, SearchOrder:=xlByColumns _
, SearchDirection:=xlNext).Activate

OR

Set Rng = Rows(x).Find("&LTD&")

Pls help on the right approach

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Applying FIND Function on a Compound word

I'd use lookat:=xlpart

dim FoundCell as range

set foundcell = selection.Find(What:="LTD", After:=ActiveCell _
, LookIn:=xlValues, LookAt:=xlPart _
, SearchOrder:=xlByColumns _
, SearchDirection:=xlNext)

if foundcell is nothing then
'didn't find it
else
foundcell.activate
end if



sylink wrote:

Column C contains names with some containing the word "LTD" I need to
find and activate the cell with names containing the word "LTD" E.g
"NIGERTEQ COMMUNICATION LTD"

I have applied the codes below without success:

Selection.Find(What:="LTD", After:=ActiveCell _
, LookIn:=xlValues, LookAt:=xlWhole _
, SearchOrder:=xlByColumns _
, SearchDirection:=xlNext).Activate

OR

Set Rng = Rows(x).Find("&LTD&")

Pls help on the right approach


--

Dave Peterson
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
how do i do a compound if function? mikey Excel Worksheet Functions 2 November 3rd 09 07:20 AM
Find a word in a table, then use a function Alonso[_2_] Excel Worksheet Functions 3 October 3rd 08 12:02 AM
Where to find formula & explanation on Compound Interest etc Centrol Excel Discussion (Misc queries) 1 September 26th 07 07:40 AM
Excel spreadsheet linked into a word doc a compound document? MeghanQuerry Excel Discussion (Misc queries) 1 June 25th 07 03:52 PM
a formula to find total compound amount after given number of yea. ronan Excel Worksheet Functions 1 February 1st 05 08:15 PM


All times are GMT +1. The time now is 09:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"