Closed Thread
Results 1 to 5 of 5

conditional formatting if cell contains comments

  1. #1
    Registered User
    Join Date
    10-03-2008
    Location
    Colorado
    Posts
    1

    conditional formatting if cell contains comments

    Is it possible to use conditional formatting on a cell if it contains comments, how would I accomplish this?
    Last edited by jwewing23; 10-09-2008 at 01:15 PM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening jwewing23
    Quote Originally Posted by jwewing23 View Post
    Is it possible to use conditional formatting on a cell if it contains comments, how would I accomplish this?
    It is possible using VBA. Conditional formatting can use customfunctions, so we'd need a custom function first to determine whether or not a cell contains a comment :
    Please Login or Register  to view this content.
    Then from, say, A1 go to Format > Conditional Formatting and select Formula Is and use a formula like this :
    =IsComm(A1)=TRUE
    and select your format.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    dominicb,

    You don't need the true statement for CF

    =IsComm(A1)
    jwewing23,

    Here's a variation on dominicb cool code.

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Using
    =HasCmt(A1)
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    06-24-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: conditional formatting if cell contains comments

    I have comment in the cell, the comments are unique (1. abc) and (2. abc). so i just want to return true if the cell comment says (1. abc) and false if the cell comment says (2. abc). please guide me.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: conditional formatting if cell contains comments

    Please take a few minutes to read the forum rules, and then start your own thread.
    Last edited by shg; 06-24-2010 at 12:59 PM.
    Entia non sunt multiplicanda sine necessitate

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 05-16-2008, 06:28 PM
  2. One criteria AND cell is blank in conditional formatting formula?
    By westis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2008, 06:37 PM
  3. Conditional Formatting
    By XLS-EXCEL in forum Excel General
    Replies: 3
    Last Post: 09-05-2007, 10:51 AM
  4. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  5. Conditional formatting referencing another cell
    By tryer in forum Excel General
    Replies: 1
    Last Post: 06-16-2007, 03:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1