Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FINDING an EXACT VALUE

Status
Not open for further replies.

kajaeger

Programmer
Oct 5, 2001
17
US
Is there an excel function that does an EXACT find- not a substring find in cells? For example if I look for the word address in a column-range search, it finds both the cells for vendor_address and address. I only want to find the "address" value. Ideas? Thank you!
 
Actually I am talking about doing a find in a macro- is there a way to make it "find entire cells" in the macro- example:
Set oColumnDef = ThisWorkbook.Worksheets.Item("Column Def")
Set oRange = oColumnDef.Range("A:A").Find(sTableName)
 
Syntax of Find method is:

expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte)

You can specify to search for entire cells only by specifying xlwhole for the LookAt property. SuperBry!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top