font color changes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to make some formatting in my excel file volatile.

if i make a change to a cell i would like the font colour to change to red.

is this possible?

any help appreciated.

ellebelle
 
Maybe...

You could use a worksheet_change event that looks for changes to your
worksheet. But you can fool this just by selecting a cell, hitting F2 and then
enter. Excel knows you reentered the value, but doesn't know that you didn't
really change it.

If you want to try...

rightclick on the worksheet tab that should have this behavior and select view
code. Then paste this into the code window that just opened.

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Font.ColorIndex = 3
End Sub

One more question. When do you want to reset your cells back to black. If I
were doing something like this, I do that part manually--then I could keep the
font red for as long as I needed.

And remember that if you have cells that are Blue, this'll change 'em to Red.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top