Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Change font color when making changes

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Change font color when making changes

Mona

Just the change from "cat" to "dog"could be done through CF.

But if that is just an example and if you mean any change at all in the cell
content the answer may be something else.


Gord Dibben MS Excel MVP


On Tue, 26 Jun 2007 11:43:00 -0700, Mona wrote:

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Change font color when making changes

that was a very general example. It would be any change at all in the cell I
would like to have the color blue/bold.

"Gord Dibben" wrote:

Mona

Just the change from "cat" to "dog"could be done through CF.

But if that is just an example and if you mean any change at all in the cell
content the answer may be something else.


Gord Dibben MS Excel MVP


On Tue, 26 Jun 2007 11:43:00 -0700, Mona wrote:

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Change font color when making changes

OK

Copy paste this event code to your worksheet. Edit for range and cell ref(s).

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
'For a range of cells change to Me.Range("A1:A10")
On Error GoTo CleanUp
Application.EnableEvents = False
If Target.Value < "" Then
With Target.Font
.ColorIndex = 5
.Bold = True
End With
End If
CleanUp:
Application.EnableEvents = True
End Sub

To install this, right-click on your sheet tab and "View Code"

Copy/paste into that module.

Gord

On Wed, 27 Jun 2007 14:16:04 -0700, Mona wrote:

that was a very general example. It would be any change at all in the cell I
would like to have the color blue/bold.

"Gord Dibben" wrote:

Mona

Just the change from "cat" to "dog"could be done through CF.

But if that is just an example and if you mean any change at all in the cell
content the answer may be something else.


Gord Dibben MS Excel MVP


On Tue, 26 Jun 2007 11:43:00 -0700, Mona wrote:

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Change font color when making changes

Thank you. Works great!!

"Gord Dibben" wrote:

OK

Copy paste this event code to your worksheet. Edit for range and cell ref(s).

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
'For a range of cells change to Me.Range("A1:A10")
On Error GoTo CleanUp
Application.EnableEvents = False
If Target.Value < "" Then
With Target.Font
.ColorIndex = 5
.Bold = True
End With
End If
CleanUp:
Application.EnableEvents = True
End Sub

To install this, right-click on your sheet tab and "View Code"

Copy/paste into that module.

Gord

On Wed, 27 Jun 2007 14:16:04 -0700, Mona wrote:

that was a very general example. It would be any change at all in the cell I
would like to have the color blue/bold.

"Gord Dibben" wrote:

Mona

Just the change from "cat" to "dog"could be done through CF.

But if that is just an example and if you mean any change at all in the cell
content the answer may be something else.


Gord Dibben MS Excel MVP


On Tue, 26 Jun 2007 11:43:00 -0700, Mona wrote:

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Change font color when making changes

Thanks for the feedback.

Gord

On Thu, 28 Jun 2007 11:52:06 -0700, Mona wrote:

Thank you. Works great!!

"Gord Dibben" wrote:

OK

Copy paste this event code to your worksheet. Edit for range and cell ref(s).

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
'For a range of cells change to Me.Range("A1:A10")
On Error GoTo CleanUp
Application.EnableEvents = False
If Target.Value < "" Then
With Target.Font
.ColorIndex = 5
.Bold = True
End With
End If
CleanUp:
Application.EnableEvents = True
End Sub

To install this, right-click on your sheet tab and "View Code"

Copy/paste into that module.

Gord

On Wed, 27 Jun 2007 14:16:04 -0700, Mona wrote:

that was a very general example. It would be any change at all in the cell I
would like to have the color blue/bold.

"Gord Dibben" wrote:

Mona

Just the change from "cat" to "dog"could be done through CF.

But if that is just an example and if you mean any change at all in the cell
content the answer may be something else.


Gord Dibben MS Excel MVP


On Tue, 26 Jun 2007 11:43:00 -0700, Mona wrote:

Is there a way to autmatically change the font color to say "blue" if I make
a change to a cell?

If I have "cat" in A1 and change it to "dog" I would like dog to be blue and
bold.

Is this possible with conditional formatting or ?

thanks!





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
Can I change font/color if value is less than another value? jmay35 Excel Discussion (Misc queries) 2 August 29th 06 09:33 PM
how can I conditionally change font color, or background color? MOHA Excel Worksheet Functions 3 August 21st 06 06:57 PM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM
Making Font Color Changes in IF Statements BigEyedFish Excel Worksheet Functions 2 July 21st 05 11:52 PM
Change the Font Color Anna Excel Worksheet Functions 3 December 11th 04 09:39 AM


All times are GMT +1. The time now is 09:05 PM.

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

About Us

"It's about Microsoft Excel"