Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Find Function via VB

Does anyone have some code that uses the Find function to look up a Column
for a typed value. As I might not know the exact value (or description) I am
looking for close matches would also be required

I want to lookup on Column B only

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Find Function via VB

Try something like

Set oCell = Columns("C:C").Find(findVal,Lookat:=xlPart)
If Not oCell Is Nothing Then
'do your stuff
Else
MsgBox "Not found"
End If

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"John" wrote in message
...
Does anyone have some code that uses the Find function to look up a Column
for a typed value. As I might not know the exact value (or description) I

am
looking for close matches would also be required

I want to lookup on Column B only

Thanks





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 Eric @ BP-EVV Excel Worksheet Functions 6 May 29th 08 08:57 PM
Find Function [email protected] Excel Worksheet Functions 2 September 14th 07 08:26 PM
Help with the FIND function Ranger Excel Worksheet Functions 1 February 25th 05 03:24 PM
Find function Jahunga Excel Worksheet Functions 2 November 22nd 04 03:38 PM
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 01:10 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"