Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 90
Default Possible to change font color for only changes to a workbook?

In addition to the track changes feature, I would like to make any changes to
the cell a different color (red). Is it possible to change the font setting
for just changes?

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Possible to change font color for only changes to a workbook?

Yes it is, but I'm not sure how useful it would be for you.

At the simplest level, this code would make font in any cell altered turn red:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error Resume Next ' in case cell is locked & protected
Target.Font.ColorIndex = 3 ' change to red
If Err < 0 Then
Err.Clear
End If
On Error GoTo 0
End Sub

To try it out, open a workbook and right-click on the Excel icon immediately
to the left of the word File in the main menu and choose [View Code], then
copy the code above and paste it into the code module presented to you.
Close the VB Editor and give it a go.

Of course you're going to want a way to reset font colors back to whatever
as a 'baseline' for sending the workbook out for use. And if you've used
multiple font colors on a sheet, that becomes rather tedious to reset to
original color if they got changed.

But changing the font color only tells you that something changed, not who
changed or when.



"Debbie" wrote:

In addition to the track changes feature, I would like to make any changes to
the cell a different color (red). Is it possible to change the font setting
for just changes?

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
EXCEL Workbook tab format options: change color or font fstudley Excel Discussion (Misc queries) 3 March 3rd 05 06:48 PM
change defaut workbook font color Ak_Deeg Excel Discussion (Misc queries) 1 February 13th 05 01:43 PM


All times are GMT +1. The time now is 01:30 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"