[vba] find

K

Karol_tom

Hi,

I want to find in whole column, before I input new entry if something
similar (not exactly the same) exist.

So I think and write:

if (len(name)<6) then
find_Name=name
else
find_name=left(name,6)
end if

I try to use find...but it doesn't work..I don't know why - in my macro I
use find
to check if ID number does not exist before...
I copy this instruction and change only what I'm looking for...
but it doesn't work.. Why ?
 
D

Don Guillett Excel MVP

Hi,

I want to find in whole column, before I input new entry if something
similar (not exactly the same) exist.

So I think and write:

if (len(name)<6) then
find_Name=name
else
find_name=left(name,6)
end if

I try to use find...but it doesn't work..I don't know why - in my macro I
use find
to check if ID number does not exist before...
I copy this instruction and change only what I'm looking for...
but it doesn't work.. Why ?

"If desired, send your file to dguillett @gmail.com I will only look
if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Locating Matches & Highlighting Background 2
whats wrong 5
[data--->validate] 10
Macro Query 3
Problems with the Find & Select 1
formula/a way to find unmatch items in two file 1
excel macro 1
Macro NOT completing 4

Top