PC Review


Reply
Thread Tools Rate Thread

Auto Cell Shading

 
 
Steve
Guest
Posts: n/a
 
      10th Jul 2008
Is there a way to create a code that will automatically shade a cell yellow
when someone overwrites a formula with a hard number?

Please help,

Steve
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      10th Jul 2008
http://www.j-walk.com/SS/excel/usertips/tip045.htm

Regards,
Ryan---


--
RyGuy


"Steve" wrote:

> Is there a way to create a code that will automatically shade a cell yellow
> when someone overwrites a formula with a hard number?
>
> Please help,
>
> Steve

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      10th Jul 2008
One way. Put this in a REGULAR module. Then use conditional formatting
=hf(h2)
Of course, that will also color text.

Function hf(x)
hf = x.HasFormula
End Function

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Steve" <(E-Mail Removed)> wrote in message
news:569B6E39-A31B-46AB-AE26-(E-Mail Removed)...
> Is there a way to create a code that will automatically shade a cell
> yellow
> when someone overwrites a formula with a hard number?
>
> Please help,
>
> Steve


 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      14th Jul 2008
Don,

I am having trouble getting this to work? Can you better explain how to do
this?
I am using Excel 2003 is it possible that this version of excel does not
have these capabilities?

Please advise. Thank you,

Steve

"Don Guillett" wrote:

> One way. Put this in a REGULAR module. Then use conditional formatting
> =hf(h2)
> Of course, that will also color text.
>
> Function hf(x)
> hf = x.HasFormula
> End Function
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Steve" <(E-Mail Removed)> wrote in message
> news:569B6E39-A31B-46AB-AE26-(E-Mail Removed)...
> > Is there a way to create a code that will automatically shade a cell
> > yellow
> > when someone overwrites a formula with a hard number?
> >
> > Please help,
> >
> > Steve

>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      14th Jul 2008
If you're new to macros:

Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

=========
After you get Don's code into that general module, you can use
format|Conditional formatting

Formula is:
=hf(h2)
(change H2 to the actual cell that's active)

Steve wrote:
>
> Don,
>
> I am having trouble getting this to work? Can you better explain how to do
> this?
> I am using Excel 2003 is it possible that this version of excel does not
> have these capabilities?
>
> Please advise. Thank you,
>
> Steve
>
> "Don Guillett" wrote:
>
> > One way. Put this in a REGULAR module. Then use conditional formatting
> > =hf(h2)
> > Of course, that will also color text.
> >
> > Function hf(x)
> > hf = x.HasFormula
> > End Function
> >
> > --
> > Don Guillett
> > Microsoft MVP Excel
> > SalesAid Software
> > (E-Mail Removed)
> > "Steve" <(E-Mail Removed)> wrote in message
> > news:569B6E39-A31B-46AB-AE26-(E-Mail Removed)...
> > > Is there a way to create a code that will automatically shade a cell
> > > yellow
> > > when someone overwrites a formula with a hard number?
> > >
> > > Please help,
> > >
> > > Steve

> >
> >


--

Dave Peterson
 
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
Auto-Format Cell Shading Crazyhorse75 Microsoft Excel Misc 2 8th Jul 2009 05:47 PM
Conditional Cell Shading (based on the shading of other cells) =?Utf-8?B?VHViYnk=?= Microsoft Excel Worksheet Functions 2 20th Jun 2006 10:03 PM
how do you set auto shading of cell based on percent value in exc. =?Utf-8?B?ZC5yb2dlcnM1OQ==?= Microsoft Excel Worksheet Functions 3 12th Feb 2005 08:25 AM
Auto Cell Shading JackJJW Microsoft Excel Misc 0 9th Nov 2004 02:17 PM
Auto Cell Shading JackJJW Microsoft Excel Misc 1 9th Nov 2004 01:19 PM


Features
 

Advertising
 

Newsgroups
 


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