Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default conditional formatting and comments

can i apply conditional formatting only for cells that have comments?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default conditional formatting and comments

Press F5From Goto window select Comments (default)OK will select all cells
with comments...Then apply conditional formatting.

If this post helps click Yes
---------------
Jacob Skaria


"puting_uwak" wrote:

can i apply conditional formatting only for cells that have comments?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default conditional formatting and comments



"Jacob Skaria" wrote:

Press F5From Goto window select Comments (default)OK will select all cells
with comments...Then apply conditional formatting.

If this post helps click Yes
---------------
Jacob Skaria



thanks for replying jacob! what i was actually looking for is a formula
that i can enter in conditional formatting to automatically format cells that
have comments in them. for example, if insert a comment in a cell, the cell
will automatically be filled with blue. if i remove the comment, the cell's
fill color will be removed.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default conditional formatting and comments



"puting_uwak" wrote:

can i apply conditional formatting only for cells that have comments?



i have a column of data and some of them had a comment,can i directly select
the column and apply conditional formatting for that data?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default conditional formatting and comments

Here we go...

You will have to use a UDF before trying the conditional formatting. If you
are new to macros set the security level to low/medium in
(Tools|Macro|Security). From workbook launch VBE using short-key Alt+F11.
From menu 'Insert' a module and paste the below code. Save. Get back to
Workbook.

Function HasComment(varRange As Range) As Integer
If Not varRange.Comment Is Nothing Then HasComment = 1
End Function

Now select cell A1. From menu FormatConditional FormattingSelect 'Formula
Is' and enter the below formula.
=hascomment(A1)=1
and select your color. It is blue right....

Try out and feeback...

If this post helps click Yes
---------------
Jacob Skaria


"puting_uwak" wrote:



"Jacob Skaria" wrote:

Press F5From Goto window select Comments (default)OK will select all cells
with comments...Then apply conditional formatting.

If this post helps click Yes
---------------
Jacob Skaria



thanks for replying jacob! what i was actually looking for is a formula
that i can enter in conditional formatting to automatically format cells that
have comments in them. for example, if insert a comment in a cell, the cell
will automatically be filled with blue. if i remove the comment, the cell's
fill color will be removed.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default conditional formatting and comments

"Jacob Skaria" wrote:

Here we go...


thanks so much! your solution works like a charm!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protected Sheet with conditional formatting and comments TommyD Excel Discussion (Misc queries) 0 May 15th 08 06:34 PM
Formatting cell comments in VB Brettjg Excel Discussion (Misc queries) 1 November 4th 07 11:41 PM
Conditional Formatting for Comments Daren Excel Worksheet Functions 1 June 28th 07 02:14 AM
formatting comments newyorkjoy Excel Discussion (Misc queries) 0 March 14th 07 01:20 AM
formatting of comments steve Excel Worksheet Functions 3 May 7th 05 01:18 AM


All times are GMT +1. The time now is 01:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"