Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Find Values in Cell

If i have a cell that has the values - A,C,D
How do I do a find using vba:
Set rngFound = rngToSearch.Find(What:="A", _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
MatchCase:=False)
That line finds the cells with Just A but i need to also find cells
where A is with other values.

Even the Control+F doesnt find the cell when it has A,C,D in it.

Anyone know?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Find Values in Cell

Change

LookAt:=xlWhole

to

LookAt:=xlPart


In article .com,
"RigasMinho" wrote:

If i have a cell that has the values - A,C,D
How do I do a find using vba:
Set rngFound = rngToSearch.Find(What:="A", _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
MatchCase:=False)
That line finds the cells with Just A but i need to also find cells
where A is with other values.

Even the Control+F doesnt find the cell when it has A,C,D in it.

Anyone know?

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
Find One Of Several Values Within A Cell Jim J. Excel Worksheet Functions 11 January 2nd 07 08:02 PM
UDF code to find specific text in cell comments, then average cell values bruch04 Excel Programming 3 December 5th 05 10:01 PM
find partial values in cell Luke Excel Worksheet Functions 1 September 18th 05 03:46 PM
Find numerical values in one cell,within another cell- is it possi ES Excel Programming 2 May 24th 05 04:16 PM
Search/Filter to find values in another range based on two cell values Andy Excel Programming 2 April 29th 04 04:08 PM


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