Re: count occurences of font color
- From: "keepITcool" <xrrcvgpbby@xxxxxxxxx>
- Date: Fri, 03 Feb 2006 12:25:31 -0800
Tom,
Not true. The null test is there to avoid the loop
when the cell(not partial text) is formatted.
in a likely scenario most cells will have
CELL.font.colorindex = xlAutomatic
and your code must loop all characters to find out.
--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam
Tom Ogilvy wrote :
You could ignore the Null test and just jump out when the first.
matching color is found (as I suggested in my earlier answer). It
would work in either case.
ActiveCell.Font.ColorIndex = 41
? ActiveCell.Characters(1,1).Font.ColorIndex
41
- Follow-Ups:
- Re: count occurences of font color
- From: Tom Ogilvy
- Re: count occurences of font color
- References:
- Re: count occurences of font color
- From: keepITcool
- Re: count occurences of font color
- From: Tom Ogilvy
- Re: count occurences of font color
- Prev by Date: Re: User input to name a ***?
- Next by Date: Countif?/Vlookup?/Macros???
- Previous by thread: Re: count occurences of font color
- Next by thread: Re: count occurences of font color
- Index(es):
Loading