Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hme hme is offline
external usenet poster
 
Posts: 1
Default Range Filtering


Hi


When I use Find("BUSH") to find a range in the cells in a worksheet,
macro find also "GEORGE BUSH" or "BUSHING".

How can I find just "BUSH" nothing more in the string.


I tried what dear *Tom Ogilvy * suggested as below mentioned but i
does'nt work I don't know why maybe because of the range is in arabi
font.

SET RNG = CELLS.FIND(WHAT:=\"-BUSH-\" , LOOKAT:XLWHOLE


Regards
HM

--
hm
-----------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...fo&userid=1593
View this thread: http://www.excelforum.com/showthread.php?threadid=27697

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range Filtering

maybe because you didn't try what I said:

SET RNG = CELLS.FIND(WHAT:="-BUSH-" , LOOKAT:=XLWHOLE)

Sub Tester3()
Dim rng As Range
Set rng = Cells.Find(WHAT:="-BUSH-", LOOKAT:=xlWhole)
If Not rng Is Nothing Then
rng.Select
End If
End Sub

worked fine for me.

--
Regards,
Tom Ogilvy

"hme" wrote in message
...

Hi


When I use Find("BUSH") to find a range in the cells in a worksheet,
macro find also "GEORGE BUSH" or "BUSHING".

How can I find just "BUSH" nothing more in the string.


I tried what dear *Tom Ogilvy * suggested as below mentioned but it
does'nt work I don't know why maybe because of the range is in arabic
font.

SET RNG = CELLS.FIND(WHAT:=\"-BUSH-\" , LOOKAT:XLWHOLE)


Regards
HME


--
hme
------------------------------------------------------------------------
hme's Profile:

http://www.excelforum.com/member.php...o&userid=15930
View this thread: http://www.excelforum.com/showthread...hreadid=276976



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
Excel 2007 Filtering range [email protected] Excel Discussion (Misc queries) 1 June 4th 08 03:45 PM
Automatically filtering a range Winston Williams Excel Discussion (Misc queries) 1 June 24th 07 03:03 AM
Filtering a dynamic range Basil Excel Worksheet Functions 5 April 30th 07 06:05 PM
filtering on range of values mkrijger Excel Discussion (Misc queries) 1 February 10th 07 02:11 PM
Range Filtering hme Excel Programming 1 November 10th 04 12:04 PM


All times are GMT +1. The time now is 02:01 PM.

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"