On Apr 25, 8:31 am, Steve Bentley <steveno.bentleyMAPSdel...@arcor.de>
wrote:
> Using vba I'd like to change the formatting/colours on a particular cell
> if the cell contains text.
[quoted text clipped - 16 lines]
> Thanks
> Steve
With my xl2003 your code works properly, ie linked text is recognised
as text and the formatting is applied.
What is returned by ISTEXT(Sheet2!B93) in any cell on the activesheet?
I did add...
Else: Cells(i, ColNum).Font.Bold = False
Cells(i, ColNum).Interior.ColorIndex = 0
to the If statement so that the formatting for text would be removed
in the event of it already being present, but I doubt that that would
be the solution to your problem.
Ken Johnson
Bentley.Steve1@googlemail.com - 25 Apr 2008 17:07 GMT
> On Apr 25, 8:31 am, Steve Bentley <steveno.bentleyMAPSdel...@arcor.de>
> wrote:
[quoted text clipped - 34 lines]
>
> Ken Johnson
Hi,
Sorry I had some conditional formatting already enabled for these
cells. Once I removed this then the code also works fine.
Sorry for this.
Steve
Ken Johnson - 25 Apr 2008 17:24 GMT
On Apr 26, 2:07 am, Bentley.Ste...@googlemail.com wrote:
> > On Apr 25, 8:31 am, Steve Bentley <steveno.bentleyMAPSdel...@arcor.de>
> > wrote:
[quoted text clipped - 41 lines]
>
> Steve
Hi Steve,
The old forgotten Conditional Formatting trap!
I've fallen in that one myself.
Nice to know things are now OK.
Ken Johnson