View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default want to highlight cell which having comment & greater than 0

Try this small macro:

Sub hilight()
For Each r In ActiveSheet.UsedRange.SpecialCells(xlCellTypeComme nts)
If r.Value 0 Then
r.Interior.ColorIndex = 6
End If
Next
End Sub


--
Gary''s Student - gsnu200853


"Devender" wrote:

Want to highlight only those cell which are having comment and their value
is greater than 0