Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
peter
 
Posts: n/a
Default how do i shade cells that contain a formula

It seems like it should be possible to do this with conditional formatting,
but i can't find a function that detects whether a cell contains a formula.
any help on this is much appreciated. thanks.


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You would need a UDF for that, nothing built in


http://www.mvps.org/dmcritchie/excel/formula.htm



Regards,

Peo Sjoblom

"peter" wrote:

It seems like it should be possible to do this with conditional formatting,
but i can't find a function that detects whether a cell contains a formula.
any help on this is much appreciated. thanks.


  #3   Report Post  
peter
 
Posts: n/a
Default

Thanks much,

The HasFormula function on that link did the trick.

Peter


"Peo Sjoblom" wrote:

You would need a UDF for that, nothing built in


http://www.mvps.org/dmcritchie/excel/formula.htm



Regards,

Peo Sjoblom

"peter" wrote:

It seems like it should be possible to do this with conditional formatting,
but i can't find a function that detects whether a cell contains a formula.
any help on this is much appreciated. thanks.


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

peter

Paste this UDF to a general module in your workbook.

Function IsFormula(Cell)
Application.Volatile
IsFormula = Cell.HasFormula
End Function

FormatConditional FormattingFormula is: =IsFormula(A1)

Pick a pattern and OK your way out.

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + R to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.


Gord Dibben Excel MVP



On Mon, 11 Apr 2005 12:51:04 -0700, "peter"
wrote:

It seems like it should be possible to do this with conditional formatting,
but i can't find a function that detects whether a cell contains a formula.
any help on this is much appreciated. thanks.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how do i shade cells that contain a formula

http://j-walk.com/ss/excel/usertips/tip045.htm

"peter" wrote:

It seems like it should be possible to do this with conditional formatting,
but i can't find a function that detects whether a cell contains a formula.
any help on this is much appreciated. 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
Need a 1 Column multiplication formula for 2600 cells. How? Buckle Excel Worksheet Functions 1 March 25th 05 04:17 PM
How to create a formula for a range of cells Marathonrealty Excel Worksheet Functions 3 February 17th 05 03:55 PM
How do i select different cells to be use in a formula. Manuel Excel Discussion (Misc queries) 1 January 13th 05 03:52 PM
how do I create a formula to seperate name into two cells (last, . jobby55 Excel Discussion (Misc queries) 2 January 13th 05 05:00 AM
Using color to ignore cells in a formula????? Mike A. Excel Discussion (Misc queries) 2 December 8th 04 05:35 PM


All times are GMT +1. The time now is 10:58 AM.

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"