Is there something wrong with the code?
Sub find_name() Dim name_list As Range, c As Range, d As Range, lookup_list As Range Worksheets("name list").Activate Set name_list = Range(Range("A2"), Range("A2").End(xlDown)) Worksheets("Sheet1").Activate Set lookup_list = Range(Range("A2"), Range("A2").End(xlDown)) For Each c In lookup_list For Each d In name_list If InStr(UCase(c.Value), UCase(d.Value)) Then c.Interior.ColorIndex = 6 Next d Next c End Sub
Last edited by hoshangc@yahoo.com; 01-26-2012 at 02:41 AM.
I would be easier if you post a sample workbook.
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
How would you like me to do that?
sample 1-25-12.xlsm
Attached is the requested sample file.
hum..... what is your question again? I see you have some codes, but I can't read your mind.
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
For some reason when I run the macro in the previously attached sample xlsm, I get error 13 type mismatch. Can you please help?
I meant what is the macro trying to do. It is taking forever for the macro to complete. Not saying I have a slow computer, but it is still running.
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
It is supposed to highlight all the words in column A of 'name sheet' in 'Sheet1'
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks