Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken
 
Posts: n/a
Default color a cell with a formula in it?

Is it possible to have excel change the color of a cell with a formula in it?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default color a cell with a formula in it?

take a look at conditional formating in the help.

"Ken" wrote:

Is it possible to have excel change the color of a cell with a formula in it?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sandy
 
Posts: n/a
Default color a cell with a formula in it?

Add a User Defined Funtion UDF

In a code module. In Excel, Alt-F11 to the VBIDE, insert a module,
InsertModule, and paste that code in.
Function IsFormula(rng As Range)
IsFormula = rng.HasFormula
End Function

Then then add that in the CF formula
=IsFormula(A10)
HTH

"Ken" wrote:

Is it possible to have excel change the color of a cell with a formula in it?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken
 
Posts: n/a
Default color a cell with a formula in it?

Exactly what I was looking for
Thankyou

"Sandy" wrote:

Add a User Defined Funtion UDF

In a code module. In Excel, Alt-F11 to the VBIDE, insert a module,
InsertModule, and paste that code in.
Function IsFormula(rng As Range)
IsFormula = rng.HasFormula
End Function

Then then add that in the CF formula
=IsFormula(A10)
HTH

"Ken" wrote:

Is it possible to have excel change the color of a cell with a formula in it?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gerritvanzyl
 
Posts: n/a
Default color a cell with a formula in it?

I used this UDF and it work like a charm, however... whenever I use this
function in a conditional format.. something funny happen... When I refer
from a different sheet to a cell on this sheet with the conditional format
in... it does not work... excell wrongly put the stuff in the refered
sheet... hope my explanation make sence!

"Sandy" wrote:

Add a User Defined Funtion UDF

In a code module. In Excel, Alt-F11 to the VBIDE, insert a module,
InsertModule, and paste that code in.
Function IsFormula(rng As Range)
IsFormula = rng.HasFormula
End Function

Then then add that in the CF formula
=IsFormula(A10)
HTH

"Ken" wrote:

Is it possible to have excel change the color of a cell with a formula in it?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David McRitchie
 
Posts: n/a
Default color a cell with a formula in it?

References:
You may not use references to other worksheets or Workbooks for Conditional Formatting criteria.
To get around this obstacle you might use a named range to refer to a range on another worksheet.
The restriction also means that you cannot use a formula referencing your personal.xls in a user defined function. You can get
around that by creating a reference in your VBE from your workbook to your personal.xls

For more information on Conditional Formatting:
http://www.mvps.org/dmcritchie/excel/condfmt.htm
For more information on named range
http://www.mvps.org/dmcritchie/excel...htm#namedrange

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Gerritvanzyl" wrote in message ...
I used this UDF and it work like a charm, however... whenever I use this
function in a conditional format.. something funny happen... When I refer
from a different sheet to a cell on this sheet with the conditional format
in... it does not work... excell wrongly put the stuff in the refered
sheet... hope my explanation make sence!

"Sandy" wrote:

Add a User Defined Funtion UDF

In a code module. In Excel, Alt-F11 to the VBIDE, insert a module,
InsertModule, and paste that code in.
Function IsFormula(rng As Range)
IsFormula = rng.HasFormula
End Function

Then then add that in the CF formula
=IsFormula(A10)
HTH

"Ken" wrote:

Is it possible to have excel change the color of a cell with a formula in it?



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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How do I set a cell value based on a formula in another cell? dingy101 Excel Discussion (Misc queries) 1 November 21st 05 08:51 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
looking for a formula Amanda Excel Worksheet Functions 5 January 5th 05 07:37 AM


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