PC Review


Reply
Thread Tools Rate Thread

***Cell Shading (Fill Color)***

 
 
Steve
Guest
Posts: n/a
 
      14th Jul 2008
Hi all,

I need some help. I'm looking for a way to do this. I have columns with
formulas. And sometimes those formulas in a particular cell or 2 are
overwritten with a "hard" number. Is it possible to somehow make it so that
when someone changes the cell to a number that it turns the cell yellow
automatically?

Please help.

Thank you!!
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      14th Jul 2008
Why not just train people not to do that?

You could write some complicated VBA code that checks the content of a
cell to see if it contains hard coded values. In the Worksheet_Change
Event, it could act as a realtime monitor. There are also some
spreadsheet auditing programs that can do this for you. Check out:
http://arxiv.org/ftp/arxiv/papers/0803/0803.0169.pdf



HTH,
JP

On Jul 14, 2:55*pm, Steve <St...@discussions.microsoft.com> wrote:
> Hi all,
>
> I need some help. *I'm looking for a way to do this. *I have columns with
> formulas. *And sometimes those formulas in a particular cell or 2 are
> overwritten with a "hard" number. *Is it possible to somehow make it sothat
> when someone changes the cell to a number that it turns the cell yellow
> automatically?
>
> Please help.
>
> Thank you!!


 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      14th Jul 2008
You can let your users type away and still prevent them from changing the
cells a specified range. For example...

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Then
On Error GoTo Done
Application.EnableEvents = False
Application.Undo
End If
Done:
Application.EnableEvents = True
End Sub

will prevent the user from making a change to anything (formulas or
constants) in Column D. Simply change the If-Then test to cover whatever
range you need it to cover.

Rick


"Steve" <(E-Mail Removed)> wrote in message
news:11E605E3-A45C-4A27-A27B-(E-Mail Removed)...
> Hi all,
>
> I need some help. I'm looking for a way to do this. I have columns with
> formulas. And sometimes those formulas in a particular cell or 2 are
> overwritten with a "hard" number. Is it possible to somehow make it so
> that
> when someone changes the cell to a number that it turns the cell yellow
> automatically?
>
> Please help.
>
> Thank you!!


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      14th Jul 2008
I would have thought the most obvious thing to do, if user should not change
the cell at all, is to protect the sheet with those cells locked. However if
user is allowed to amend formulas you could use Conditional formats.

First select cell A1 ( * important * )
Ctrl-F3, Define name
Name: NotFormula
Refersto: =LEFT(GET.CELL(41,A1),1)<>"="

Select your Formula cells you want coloured if they are changed to a non
formula, ie do not start with an "="

Format, Conditional formats, select "Formula Is" in the left dropdown and
this formula
=NotFormula

(I'm sure there must be some simpler function to indicate if the cell is a
formula, but off the top of my head I can't think what it might be).

Regards,
Peter T



"Steve" <(E-Mail Removed)> wrote in message
news:11E605E3-A45C-4A27-A27B-(E-Mail Removed)...
> Hi all,
>
> I need some help. I'm looking for a way to do this. I have columns with
> formulas. And sometimes those formulas in a particular cell or 2 are
> overwritten with a "hard" number. Is it possible to somehow make it so

that
> when someone changes the cell to a number that it turns the cell yellow
> automatically?
>
> Please help.
>
> Thank you!!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy fill color with shading Alessandra Microsoft Powerpoint 2 12th May 2010 07:58 AM
Re: How to change cell shading/fill based on value in another cell? Bob Umlas Microsoft Excel Discussion 0 11th Nov 2009 04:08 PM
Change shading color of text fill-in field? Chesterkitty Microsoft Word Document Management 0 2nd Apr 2009 04:50 PM
Cell shading reverts to No Fill John Microsoft Excel Misc 0 2nd May 2008 04:43 PM
Shading Text (fill color) =?Utf-8?B?c2hhZG93?= Microsoft Word Document Management 3 23rd Dec 2006 01:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 AM.