Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When using the find function.......


Can you chose to look for a word *before* something, aswell as after
Cells.Find("word", After:=Equity..............

If not how I can i get around it, can i ask it to search within a rang
on a worksheet? ie within range A2:A500

--
CarolineHedge
-----------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...fo&userid=3570
View this thread: http://www.excelforum.com/showthread.php?threadid=56696

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default When using the find function.......

Nope. You're looking After:= a cell.

But you could find "Equity" first, then look after that found cell.

dim FoundEquity as range
dim FoundWord as range

with activesheet
set foundequity = .cells.find(what:="equity", .....

if foundequity is nothing then
msgbox "Equity wasn't found!"
else
set foundword = .cells.find(what:="word", after:=foundequity, ...

end if
end with



CarolineHedges wrote:

Can you chose to look for a word *before* something, aswell as after:
Cells.Find("word", After:=Equity..............

If not how I can i get around it, can i ask it to search within a range
on a worksheet? ie within range A2:A500?

--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...o&userid=35705
View this thread: http://www.excelforum.com/showthread...hreadid=566967


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default When using the find function.......

Yes. Instead of using 'Cells' as the range in the Find call, which is
the entire worksheet, you can specify any range in which it will search
in. So Range("A2:A500").Find("word", .. , should work. Be careful
with the find since it saves the settings for all the arguments it uses
each time. Always a good idea to just set them to what you need each
time. The help menu gives some good explanations.

CarolineHedges wrote:
Can you chose to look for a word *before* something, aswell as after:
Cells.Find("word", After:=Equity..............

If not how I can i get around it, can i ask it to search within a range
on a worksheet? ie within range A2:A500?


--
CarolineHedges
------------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...o&userid=35705
View this thread: http://www.excelforum.com/showthread...hreadid=566967


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default When using the find function.......


Thanks ImpulseBlue

Yes I've notice that happens with the find!

Thanks very much. I'll give it a g

--
CarolineHedge
-----------------------------------------------------------------------
CarolineHedges's Profile: http://www.excelforum.com/member.php...fo&userid=3570
View this thread: http://www.excelforum.com/showthread.php?threadid=56696

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 Function SJT Excel Discussion (Misc queries) 5 June 5th 10 11:21 PM
Find function Eric @ BP-EVV Excel Worksheet Functions 6 May 29th 08 08:57 PM
Find function alamo Excel Worksheet Functions 1 September 16th 05 12:47 PM
Find Function Mark Excel Programming 4 February 15th 05 02:16 AM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


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