Is it possible to use conditional formatting on a cell if it contains comments, how would I accomplish this?
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.
Good evening jwewing23
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 :
Then from, say, A1 go to Format > Conditional Formatting and select Formula Is and use a formula like this :![]()
Please Login or Register to view this content.
=IsComm(A1)=TRUE
and select your format.
HTH
DominicB
Please familiarise yourself with the rules before posting. You can find them here.
dominicb,
You don't need the true statement for CF
jwewing23,=IsComm(A1)
Here's a variation on dominicb cool code.
or![]()
Please Login or Register to view this content.
Using![]()
Please Login or Register to view this content.
VBA Noob=HasCmt(A1)
_________________________________________
![]()
![]()
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 !!!
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.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks