Hello Prince Dubey,
Your solution works.
But as I mentioned in my original post the data will be in different areas 
of the sheet
Not in A1:AK117 always...which is where your code will work.
 
Can you please change your code so that it runs on any selected range only.
Thanks for your time and help.
Rashid

On Saturday, September 15, 2012 8:03:53 PM UTC+4, Prince Dubey wrote:

> Hi Rashid,
>
> Please see the attachment, Hope this will help you.
>
> Note : For testing the solution first set any other color for the cell 
> where the your specified criteria matched and then press the button 
> Highlight.
>
> regards
> prince
>
> On Saturday, 15 September 2012 17:22:57 UTC+5:30, prkhan56 wrote:
>>
>> Hello Experts,
>> I am using Excel 2010 and have the following problem.
>> If an employee no. is duplicate and he has worked in both Work Areas 
>> viz EC and RTG then I wish to highlight only those Worked Cells with Yellow.
>>  
>> I have done it manually to demonstrate my requirement in yellow.
>>  
>> As the data shown in the attached file is part of a big work area, I 
>> would like to RUN the macro only on the Selected Range after I have 
>> selected that Range.
>>  
>> Thanks in advance
>> Rashid Khan
>>
>

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to