Try this :

 Sub AddCOmment()
    Dim rngCell As Range
    If rngCell.Interior.Color = YourCOlor Then
    rngCell.AddCOmment "YourCommentText"
    End If
 End Sub


On Fri, Dec 30, 2011 at 3:20 PM, Kasireddy Amarender
<kassi.re...@gmail.com>wrote:

> Dear Both,
>
> Thank you for helping me out. I just understand that the interior's
> colors are actually coming from the conditional formatting, so I think
> the filtering / using of color property may not be helping, hence I'm
> switching to use the conditions which were used for conditional
> formatting.
>
> However, I'm not sure of the color which is appearing in my excel is
> same as which Siti has sent, hence unable to send you the excel file
> filled.
>
> However here is my main question again.
>
> I would like to include a comment in a new cell based on the interior
> color of the current cell.
>
> so irrespective of the colors, is there any way that I could use the
> interior color property to make the conditions or use the cell for
> further processing?
>
> Thanks in advance for the suggestions.
>
> Best regards,
> Amar
>
>
>
>
> On 30/12/2011, Rajan_Verma <rajanverma1...@gmail.com> wrote:
> > You need to make a color mapping and can use vlookup..
> >
> >
> >
> > From: excel-macros@googlegroups.com [mailto:
> excel-macros@googlegroups.com]
> > On Behalf Of siti Vi
> > Sent: Dec/Fri/2011 10:45
> > To: excel-macros@googlegroups.com
> > Subject: Re: $$Excel-Macros$$ Excel - Cell color actions
> >
> >
> >
> > I have Color-Index-Number ( 1 to 56) for excel pallete
> >
> >
> >
> > What number for RED, what Number for Blue ? etc
> >
> > Please full fill the list (name of color) (attached)
> >
> >
> >
> > Based on you Color Naming, we 'll create a Custom function for you
> >
> >
> >
> >
> > color
> >
> > color index
> >
> > color name, in english
> >
> >
> >
> > where is red, where is blue ?
> >
> >
> >
> >
> > 1
> >
> >
> >
> >               where is yellow ? E.t.c.
> >
> >
> >
> >
> > 2
> >
> >
> >
> >               please full fill  D Column (D3:D58) = 56 color name
> >
> >
> >
> >
> > 3
> >
> >
> >
> >               based on your color-maing in D column
> >
> >
> >
> >
> > 4
> >
> >
> >
> >               we shall make a  custom worksheet function for you
> >
> >
> >
> >
> > 5
> >
> >
> >
> >
> >
> >
> >
> > 6
> >
> >
> >
> >
> >
> >
> >
> > 7
> >
> >
> >
> >
> >
> >
> >
> > 8
> >
> >
> >
> >
> >
> >
> >
> > 54
> >
> >
> >
> >
> >
> >
> >
> > 55
> >
> >
> >
> >
> >
> >
> >
> > 56
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Dec 29, 2011 at 12:58 PM, Kasireddy Amarender
> > <kassi.re...@gmail.com> wrote:
> >
> > Hi Team,
> >
> > I would like to know the options/code for performing some actions
> > based on the cell interior color.
> >
> > for example
> >
> >  if cell A1 is of Green color I would like to print "Green Color" text
> in B1
> >  if cell A1 is of Red color I would like to print "Red Color" text in B1
> >  if cell A1 is of Yellow color I would like to print "Yellow Color" text
> in
> > B1
> >
> > Thank you in advance for the help.
> >
> > Thanks,
> > Amar
> >
> > --
> > FORUM RULES (934+ 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.
> >
> > NOTE : Don't ever post personal or confidential data in a workbook. Forum
> > owners and members are not responsible for any loss.
> >
> >
> ----------------------------------------------------------------------------
> > --------------------------
> > To post to this group, send email to excel-macros@googlegroups.com
> >
> > --
> > FORUM RULES (934+ 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.
> >
> > NOTE  : Don't ever post personal or confidential data in a workbook.
> Forum
> > owners and members are not responsible for any loss.
> >
> >
> ------------------------------------------------------------------------------------------------------
> > To post to this group, send email to excel-macros@googlegroups.com
> >
>
> --
> FORUM RULES (934+ 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.
>
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>



-- 
Regards
Rajan verma
+91 9158998701

-- 
FORUM RULES (934+ 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. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to